You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
support multiple Activities
This commit is contained in:
@@ -8,12 +8,13 @@
|
||||
struct handle_cache {
|
||||
struct {
|
||||
jclass class;
|
||||
jobject object;
|
||||
jmethodID onCreate;
|
||||
jmethodID onStart;
|
||||
jmethodID onResume;
|
||||
jmethodID onWindowFocusChanged;
|
||||
jmethodID onDestroy;
|
||||
jmethodID onStop;
|
||||
jmethodID onPause;
|
||||
} apk_main_activity;
|
||||
struct {
|
||||
jclass class;
|
||||
@@ -78,6 +79,8 @@ struct handle_cache {
|
||||
|
||||
extern struct handle_cache handle_cache;
|
||||
|
||||
JNIEnv * get_jni_env(void);
|
||||
|
||||
const char * attribute_set_get_string(JNIEnv *env, jobject attrs, char *attribute, char *schema);
|
||||
int attribute_set_get_int(JNIEnv *env, jobject attrs, char *attribute, char *schema, int default_value);
|
||||
void set_up_handle_cache(JNIEnv *env);
|
||||
|
||||
Reference in New Issue
Block a user