Android: Clean up local references on emu thread and loops

Should hopefully fix the runtime killing our app on some devices.
This commit is contained in:
Connor McLaughlin
2020-12-11 00:10:35 +10:00
parent ae9c4c48f4
commit a391ba1622
4 changed files with 168 additions and 58 deletions

View File

@ -27,6 +27,8 @@ public:
bool AddToStringList(const char* section, const char* key, const char* item) override;
private:
jclass m_set_class{};
jclass m_shared_preferences_class{};
jobject m_java_shared_preferences{};
jmethodID m_get_boolean{};
jmethodID m_get_int{};