Skip to content

Commit

Permalink
Merge pull request #19 from tsailin-bit/master
Browse files Browse the repository at this point in the history
Fix: is_new_stability for Android 12
  • Loading branch information
hiking90 authored Mar 19, 2024
2 parents 3948270 + 094ff28 commit a181c3e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rsbinder/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ pub fn set_android_version(version: i32) {
pub fn is_new_stability() -> bool {
#[cfg(target_os = "android")]
match ANDROID_VERSION.get() {
Some(version) => *version >= 12,
None => true, // Support the latest version by default.
Some(version) => *version == 12,
None => false, // Support the latest version by default.
}
#[cfg(not(target_os = "android"))]
true
false
}

#[cfg(test)]
Expand Down

0 comments on commit a181c3e

Please sign in to comment.