Bump bitflags to v2

This commit is contained in:
dAxpeDDa
2023-05-28 20:09:20 +02:00
committed by Robert Bragg
parent 741e633ea8
commit 74f510a99a
3 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -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]
+1
View File
@@ -36,6 +36,7 @@ pub enum Source {
}
bitflags! {
#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
struct SourceFlags: u32 {
const CLASS_MASK = 0x000000ff;
+1
View File
@@ -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