And share_text, toast, recreate

This commit is contained in:
Henrik Rydgård committed 2023-03-22 23:52:25 +01:00
1 parent 87d0c21f14
commit ac47476253
10 files changed
+51 -51

No files matched your search

+11 -1
View File
@@ -718,7 +718,17 @@ void TouchTestScreen::render() {
ui_context->Flush();
}
void RecreateActivity();
void RecreateActivity() {
const int SYSTEM_JELLYBEAN = 16;
if (System_GetPropertyInt(SYSPROP_SYSTEMVERSION) >= SYSTEM_JELLYBEAN) {
INFO_LOG(SYSTEM, "Sending recreate");
System_Notify(SystemNotification::FORCE_RECREATE_ACTIVITY);
INFO_LOG(SYSTEM, "Got back from recreate");
} else {
auto gr = GetI18NCategory("Graphics");
System_Toast(gr->T("Must Restart", "You must restart PPSSPP for this change to take effect"));
}
}
UI::EventReturn TouchTestScreen::OnImmersiveModeChange(UI::EventParams &e) {
System_SendMessage("immersive", "");