fix missing check for automatic theme on android 10+
Signed-off-by: David Luhmer <david-dev@live.de>
This commit is contained in:
parent
3ef974b3f7
commit
cfa4242ec3
1 changed files with 2 additions and 0 deletions
|
@ -29,6 +29,7 @@ import android.os.Build;
|
|||
import android.util.Log;
|
||||
|
||||
import androidx.appcompat.app.AppCompatDelegate;
|
||||
|
||||
import de.luhmer.owncloudnewsreader.R;
|
||||
import de.luhmer.owncloudnewsreader.SettingsActivity;
|
||||
|
||||
|
@ -129,6 +130,7 @@ public class ThemeChooser {
|
|||
case AppCompatDelegate.MODE_NIGHT_YES:
|
||||
Log.v(TAG, "MODE_NIGHT_YES (Dark Theme)");
|
||||
return true;
|
||||
case AppCompatDelegate.MODE_NIGHT_FOLLOW_SYSTEM:
|
||||
case AppCompatDelegate.MODE_NIGHT_AUTO:
|
||||
//Log.v(TAG, "MODE_NIGHT_AUTO");
|
||||
int nightModeFlags = context.getResources().getConfiguration().uiMode & Configuration.UI_MODE_NIGHT_MASK;
|
||||
|
|
Loading…
Reference in a new issue