platform/android/Rhodes/jni/src/navbar.cpp in rhodes-2.0.0.beta11 vs platform/android/Rhodes/jni/src/navbar.cpp in rhodes-2.0.0.rc1
- old
+ new
@@ -26,5 +26,17 @@
jmethodID mid = getJNIClassStaticMethod(env, cls, "remove", "()V");
if (!mid) return;
env->CallStaticVoidMethod(cls, mid);
}
+
+RHO_GLOBAL VALUE navbar_started()
+{
+ JNIEnv *env = jnienv();
+ VALUE nil = rho_ruby_get_NIL();
+ jclass cls = getJNIClass(RHODES_JAVA_CLASS_NAVBAR);
+ if (!cls) return nil;
+ jmethodID mid = getJNIClassStaticMethod(env, cls, "isStarted", "()Z");
+ if (!mid) return nil;
+
+ return rho_ruby_create_boolean(env->CallStaticBooleanMethod(cls, mid));
+}