use handle_cache for Looper methods

These methods need to be called very often
This commit is contained in:
Julian Winkler
2023-10-08 15:31:55 +02:00
parent a29ba61f30
commit 23c0b006ef
3 changed files with 11 additions and 5 deletions

View File

@@ -94,6 +94,11 @@ struct handle_cache {
jclass class;
jmethodID get_app_icon_path;
} application;
struct {
jclass class;
jmethodID loop;
jmethodID prepareMainLooper;
} looper;
};
extern struct handle_cache handle_cache;