Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup bevy winit #11489

Merged
merged 16 commits into from
Jan 28, 2024
Prev Previous commit
Next Next commit
Extract message to variable to collapse method chain
  • Loading branch information
atlv24 committed Jan 23, 2024
commit 5a65d696bcb8ea473035c5688c16f9e4db10b60a
8 changes: 2 additions & 6 deletions crates/bevy_winit/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,8 @@ impl Plugin for WinitPlugin {
#[cfg(target_os = "android")]
{
use winit::platform::android::EventLoopBuilderExtAndroid;
event_loop_builder.with_android_app(
ANDROID_APP
.get()
.expect("Bevy must be setup with the #[bevy_main] macro on Android")
.clone(),
);
let msg = "Bevy must be setup with the #[bevy_main] macro on Android";
event_loop_builder.with_android_app(ANDROID_APP.get().expect(msg).clone());
}

app.init_non_send_resource::<WinitWindows>()
Expand Down