From 74f510a99ac37d803ebe7a1682d042c23a3d075a Mon Sep 17 00:00:00 2001 From: dAxpeDDa Date: Sun, 28 May 2023 20:09:20 +0200 Subject: [PATCH] Bump `bitflags` to v2 --- android-activity/Cargo.toml | 2 +- android-activity/src/input.rs | 1 + android-activity/src/lib.rs | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/android-activity/Cargo.toml b/android-activity/Cargo.toml index 25c3449..9b70e95 100644 --- a/android-activity/Cargo.toml +++ b/android-activity/Cargo.toml @@ -31,7 +31,7 @@ ndk-sys = "0.4" ndk-context = "0.1" android-properties = "0.2" num_enum = "0.6" -bitflags = "1.3" +bitflags = "2.0" libc = "0.2" [build-dependencies] diff --git a/android-activity/src/input.rs b/android-activity/src/input.rs index 372965e..b9edf7e 100644 --- a/android-activity/src/input.rs +++ b/android-activity/src/input.rs @@ -36,6 +36,7 @@ pub enum Source { } bitflags! { + #[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)] struct SourceFlags: u32 { const CLASS_MASK = 0x000000ff; diff --git a/android-activity/src/lib.rs b/android-activity/src/lib.rs index 0650e04..e00a902 100644 --- a/android-activity/src/lib.rs +++ b/android-activity/src/lib.rs @@ -275,6 +275,7 @@ pub use activity_impl::AndroidAppWaker; bitflags! { /// Flags for [`AndroidApp::set_window_flags`] /// as per the [android.view.WindowManager.LayoutParams Java API](https://developer.android.com/reference/android/view/WindowManager.LayoutParams) + #[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)] pub struct WindowManagerFlags: u32 { /// As long as this window is visible to the user, allow the lock /// screen to activate while the screen is on. This can be used