Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1740d854 authored by wilsonshih's avatar wilsonshih Committed by Wei Sheng Shih
Browse files

Correcting mNightMode which should set from Configuration

Bug: 205658898
Test: atest SplashscreenTests ActivityTaskManagerServiceTests
WindowProcessControllerTests

Change-Id: Ie238bfd99ffeae4db9de04c19cdaa1785a920cfc
parent d9422307
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -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