File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ impl<'env> Intent<'env> {
9696 } )
9797 }
9898
99- /// Builds a new [`Action::Chooser`](Action) Intent that wraps the given target intent.
99+ /// Builds a new [`Action::Chooser`] Intent that wraps the given target intent.
100100 /// ```no_run
101101 /// use android_intent::{Action, Intent};
102102 ///
Original file line number Diff line number Diff line change @@ -8,13 +8,11 @@ mod intent;
88pub use intent:: Intent ;
99use jni:: { JNIEnv , JavaVM } ;
1010
11- /// Run 'f' with the current `[ JNIEnv]` from `ndk_context`.
11+ /// Run 'f' with the current [` JNIEnv`] from [ `ndk_context`] .
1212pub fn with_current_env ( f : impl FnOnce ( JNIEnv ) ) {
1313 let cx = ndk_context:: android_context ( ) ;
1414 let vm = unsafe { JavaVM :: from_raw ( cx. vm ( ) . cast ( ) ) } . unwrap ( ) ;
1515 let env = vm. attach_current_thread ( ) . unwrap ( ) ;
1616
1717 f ( env. clone ( ) ) ;
18-
19- drop ( env) ;
2018}
You can’t perform that action at this time.
0 commit comments