mirror of
https://github.com/rust-mobile/android-activity.git
synced 2026-07-10 00:37:28 +00:00
Upgrade to stable ndk 0.8 and ndk-sys 0.5 releases
This commit is contained in:
@@ -33,8 +33,8 @@ log = "0.4"
|
||||
jni-sys = "0.3"
|
||||
cesu8 = "1"
|
||||
jni = "0.21"
|
||||
ndk-sys = "0.5.0-beta.0"
|
||||
ndk = "0.8.0-beta.0"
|
||||
ndk-sys = "0.5.0"
|
||||
ndk = "0.8.0"
|
||||
ndk-context = "0.1"
|
||||
android-properties = "0.2"
|
||||
num_enum = "0.7"
|
||||
|
||||
@@ -909,7 +909,7 @@ extern "C" fn ANativeActivity_onCreate(
|
||||
// code to look up non-standard Java classes.
|
||||
android_main(app);
|
||||
})
|
||||
.unwrap_or_else(|panic| log_panic(panic));
|
||||
.unwrap_or_else(log_panic);
|
||||
|
||||
// Let JVM know that our Activity can be destroyed before detaching from the JVM
|
||||
//
|
||||
|
||||
@@ -494,14 +494,13 @@ impl<'a> InputIteratorInner<'a> {
|
||||
return false;
|
||||
};
|
||||
|
||||
// Note: we basically ignore errors from get_event() currently. Looking
|
||||
// at the source code for Android's InputQueue, the only error that
|
||||
// can be returned here is 'WOULD_BLOCK', which we want to just treat as
|
||||
// meaning the queue is empty.
|
||||
// Note: we basically ignore errors from event() currently. Looking at the source code for
|
||||
// Android's InputQueue, the only error that can be returned here is 'WOULD_BLOCK', which we
|
||||
// want to just treat as meaning the queue is empty.
|
||||
//
|
||||
// ref: https://github.com/aosp-mirror/platform_frameworks_base/blob/master/core/jni/android_view_InputQueue.cpp
|
||||
//
|
||||
if let Ok(Some(ndk_event)) = queue.get_event() {
|
||||
if let Ok(Some(ndk_event)) = queue.event() {
|
||||
log::trace!("queue: got event: {ndk_event:?}");
|
||||
|
||||
if let Some(ndk_event) = queue.pre_dispatch(ndk_event) {
|
||||
|
||||
Reference in New Issue
Block a user