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

Commit 58cb003a authored by Jay Aliomer's avatar Jay Aliomer
Browse files

Dark theme resets when new user is created

Fixes: 169106225
Test: manual create secondary users
Change-Id: I55f3e5cdcd9260f20c4f291be821ef076cb7daf7
parent 03bc25f7
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -501,7 +501,7 @@ final class UiModeManagerService extends SystemService {
    }

    /**
     * Updates the night mode setting in Settings.Global and returns if the value was successfully
     * Updates the night mode setting in Settings.Secure and returns if the value was successfully
     * changed.
     *
     * @param context A valid context
@@ -516,7 +516,8 @@ final class UiModeManagerService extends SystemService {
        int oldNightMode = mNightMode;
        if (mSetupWizardComplete) {
            mNightMode = Secure.getIntForUser(context.getContentResolver(),
                    Secure.UI_NIGHT_MODE, mNightMode, userId);
                    Secure.UI_NIGHT_MODE, res.getInteger(
                            com.android.internal.R.integer.config_defaultNightMode), userId);
            mOverrideNightModeOn = Secure.getIntForUser(context.getContentResolver(),
                    Secure.UI_NIGHT_MODE_OVERRIDE_ON, 0, userId) != 0;
            mOverrideNightModeOff = Secure.getIntForUser(context.getContentResolver(),