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> {
96
96
} )
97
97
}
98
98
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.
100
100
/// ```no_run
101
101
/// use android_intent::{Action, Intent};
102
102
///
Original file line number Diff line number Diff line change @@ -8,13 +8,11 @@ mod intent;
8
8
pub use intent:: Intent ;
9
9
use jni:: { JNIEnv , JavaVM } ;
10
10
11
- /// Run 'f' with the current `[ JNIEnv]` from `ndk_context`.
11
+ /// Run 'f' with the current [` JNIEnv`] from [ `ndk_context`] .
12
12
pub fn with_current_env ( f : impl FnOnce ( JNIEnv ) ) {
13
13
let cx = ndk_context:: android_context ( ) ;
14
14
let vm = unsafe { JavaVM :: from_raw ( cx. vm ( ) . cast ( ) ) } . unwrap ( ) ;
15
15
let env = vm. attach_current_thread ( ) . unwrap ( ) ;
16
16
17
17
f ( env. clone ( ) ) ;
18
-
19
- drop ( env) ;
20
18
}
You can’t perform that action at this time.
0 commit comments