File tree 3 files changed +7
-8
lines changed 3 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -33,8 +33,8 @@ log = "0.4"
33
33
jni-sys = " 0.3"
34
34
cesu8 = " 1"
35
35
jni = " 0.21"
36
- ndk-sys = " 0.5.0-beta.0 "
37
- ndk = " 0.8.0-beta.0 "
36
+ ndk-sys = " 0.5.0"
37
+ ndk = " 0.8.0"
38
38
ndk-context = " 0.1"
39
39
android-properties = " 0.2"
40
40
num_enum = " 0.7"
Original file line number Diff line number Diff line change @@ -909,7 +909,7 @@ extern "C" fn ANativeActivity_onCreate(
909
909
// code to look up non-standard Java classes.
910
910
android_main ( app) ;
911
911
} )
912
- . unwrap_or_else ( |panic| log_panic ( panic ) ) ;
912
+ . unwrap_or_else ( log_panic) ;
913
913
914
914
// Let JVM know that our Activity can be destroyed before detaching from the JVM
915
915
//
Original file line number Diff line number Diff line change @@ -494,14 +494,13 @@ impl<'a> InputIteratorInner<'a> {
494
494
return false ;
495
495
} ;
496
496
497
- // Note: we basically ignore errors from get_event() currently. Looking
498
- // at the source code for Android's InputQueue, the only error that
499
- // can be returned here is 'WOULD_BLOCK', which we want to just treat as
500
- // meaning the queue is empty.
497
+ // Note: we basically ignore errors from event() currently. Looking at the source code for
498
+ // Android's InputQueue, the only error that can be returned here is 'WOULD_BLOCK', which we
499
+ // want to just treat as meaning the queue is empty.
501
500
//
502
501
// ref: https://github.com/aosp-mirror/platform_frameworks_base/blob/master/core/jni/android_view_InputQueue.cpp
503
502
//
504
- if let Ok ( Some ( ndk_event) ) = queue. get_event ( ) {
503
+ if let Ok ( Some ( ndk_event) ) = queue. event ( ) {
505
504
log:: trace!( "queue: got event: {ndk_event:?}" ) ;
506
505
507
506
if let Some ( ndk_event) = queue. pre_dispatch ( ndk_event) {
You can’t perform that action at this time.
0 commit comments