This commit is contained in:
2021-12-18 02:43:04 +01:00
parent dc8cc14d20
commit 21b8c6c7ec
8 changed files with 195 additions and 175 deletions

View File

@@ -547,7 +547,8 @@ public class Miscellaneous extends Service
public static boolean isDarkModeEnabled(Context context)
{
switch(context.getResources().getConfiguration().uiMode)
int mode = context.getResources().getConfiguration().uiMode;
switch(mode)
{
case Configuration.UI_MODE_NIGHT_YES:
return true;