Merge "Correcting mNightMode which should set from Configuration" into sc-v2-dev am: 08361ad4e7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16226486 Change-Id: Ic05d85ec2fa2ec601e07152530baa18e023430f5
This commit is contained in:
@@ -16,10 +16,8 @@
|
||||
|
||||
package com.android.server.wm;
|
||||
|
||||
import static android.app.UiModeManager.MODE_NIGHT_AUTO;
|
||||
import static android.app.UiModeManager.MODE_NIGHT_CUSTOM;
|
||||
|
||||
import android.annotation.NonNull;
|
||||
import android.content.res.Configuration;
|
||||
import android.os.Environment;
|
||||
import android.os.LocaleList;
|
||||
import android.util.AtomicFile;
|
||||
@@ -303,7 +301,7 @@ public class PackageConfigPersister {
|
||||
}
|
||||
|
||||
boolean isResetNightMode() {
|
||||
return mNightMode == MODE_NIGHT_AUTO || mNightMode == MODE_NIGHT_CUSTOM;
|
||||
return mNightMode == Configuration.UI_MODE_NIGHT_UNDEFINED;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user