File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ pub mod android {
31
31
extern crate jni;
32
32
33
33
use self :: jni:: objects:: { JClass , JString } ;
34
- use self :: jni:: sys:: { jdouble, jstring} ;
34
+ use self :: jni:: sys:: { jdouble, jint , jstring} ;
35
35
use self :: jni:: JNIEnv ;
36
36
use super :: * ;
37
37
use aw_datastore:: Datastore ;
@@ -220,9 +220,11 @@ pub mod android {
220
220
env : JNIEnv ,
221
221
_: JClass ,
222
222
java_bucket_id : JString ,
223
+ java_limit : jint ,
223
224
) -> jstring {
224
225
let bucket_id = jstring_to_string ( & env, java_bucket_id) ;
225
- match openDatastore ( ) . get_events ( & bucket_id, None , None , None ) {
226
+ let limit = java_limit as u64 ;
227
+ match openDatastore ( ) . get_events ( & bucket_id, None , None , Some ( limit) ) {
226
228
Ok ( events) => string_to_jstring ( & env, json ! ( events) . to_string ( ) ) ,
227
229
Err ( e) => create_error_object (
228
230
& env,
You can’t perform that action at this time.
0 commit comments