This commit is contained in:
2021-12-18 13:29:47 +01:00
parent 21b8c6c7ec
commit 3e9590d7d2
3 changed files with 9 additions and 0 deletions

View File

@ -1133,6 +1133,7 @@ public class Actions
{
Miscellaneous.logEvent("i", "Actions", "Turning screen off.", 3);
/*params.flags |= LayoutParams.FLAG_KEEP_SCREEN_ON;
params.screenBrightness = 0;
getWindow().setAttributes(params);*/

View File

@ -550,8 +550,10 @@ public class Miscellaneous extends Service
int mode = context.getResources().getConfiguration().uiMode;
switch(mode)
{
case 33:
case Configuration.UI_MODE_NIGHT_YES:
return true;
case 17:
case Configuration.UI_MODE_NIGHT_NO:
case Configuration.UI_MODE_NIGHT_UNDEFINED:
default: