Android: Reassert sustained perf when going ingame.

This commit is contained in:
Unknown W. Brackets 2020-05-09 11:10:48 -07:00
parent 581a288852
commit 040ba2b3ff

View File

@ -1316,6 +1316,7 @@ public abstract class NativeActivity extends Activity {
if (params.equals("ingame")) {
// Keep the screen bright - very annoying if it goes dark when tilting away
window.addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
updateSustainedPerformanceMode();
} else {
// Only keep the screen bright ingame.
window.clearFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);