Skip to content

Commit

Permalink
fix android example
Browse files Browse the repository at this point in the history
  • Loading branch information
marc2332 committed Apr 30, 2024
1 parent 2b3e1a8 commit af6bb0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions glutin_examples/examples/android.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#![cfg(android_platform)]

use winit::event_loop::EventLoopBuilder;
use winit::event_loop::EventLoop;
use winit::platform::android::EventLoopBuilderExtAndroid;

#[no_mangle]
fn android_main(app: winit::platform::android::activity::AndroidApp) {
let event_loop = EventLoopBuilder::new().with_android_app(app).build().unwrap();
let event_loop = EventLoop::builder().with_android_app(app).build().unwrap();
glutin_examples::main(event_loop).unwrap()
}

0 comments on commit af6bb0c

Please sign in to comment.