Theme: follow system by default

This commit is contained in:
M66B
2021-01-18 11:09:53 +01:00
parent f320f2b7c0
commit 2575139c9d
5 changed files with 8 additions and 5 deletions

View File

@@ -93,7 +93,7 @@ abstract class ActivityBase extends AppCompatActivity implements SharedPreferenc
getWindow().addFlags(WindowManager.LayoutParams.FLAG_SECURE);
if (!this.getClass().equals(ActivityMain.class)) {
String theme = prefs.getString("theme", "light");
String theme = prefs.getString("theme", "blue_orange_system");
// https://developer.android.com/guide/topics/ui/look-and-feel/darktheme#configuration_changes
int uiMode = getResources().getConfiguration().uiMode;