Minor fixes
This commit is contained in:
parent
ab9e621c33
commit
8aa52864c5
1 changed files with 1 additions and 5 deletions
|
@ -3927,7 +3927,6 @@ public class OsmandSettings {
|
|||
return isLightContent();
|
||||
}
|
||||
|
||||
|
||||
public boolean isLightContent() {
|
||||
return isLightContentForMode(APPLICATION_MODE.get());
|
||||
}
|
||||
|
@ -3942,10 +3941,7 @@ public class OsmandSettings {
|
|||
public boolean isLightSystemDefaultTheme() {
|
||||
Configuration config = ctx.getResources().getConfiguration();
|
||||
int systemNightModeState = config.uiMode & Configuration.UI_MODE_NIGHT_MASK;
|
||||
if (systemNightModeState == Configuration.UI_MODE_NIGHT_YES) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return systemNightModeState != Configuration.UI_MODE_NIGHT_YES;
|
||||
}
|
||||
|
||||
public boolean isSystemDefaultThemeUsed() {
|
||||
|
|
Loading…
Reference in a new issue