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

Commit d209b410 authored by Luca Stefani's avatar Luca Stefani
Browse files

SystemUI: AmbientTile: Default the setting to 1

Change-Id: Idea9dda702fdbaa0e2836e7a2573aa57cf24449e
parent e928b5d0
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@

package com.android.systemui.qs.tiles;

import android.app.ActivityManager;
import android.content.Intent;
import android.os.Build;
import android.os.SystemProperties;
@@ -45,7 +46,8 @@ public class AmbientDisplayTile extends QSTileImpl<BooleanState> {
    public AmbientDisplayTile(QSHost host) {
        super(host);

        mSetting = new SecureSetting(mContext, mHandler, Secure.DOZE_ENABLED) {
        mSetting = new SecureSetting(mContext, mHandler, Secure.DOZE_ENABLED,
                ActivityManager.getCurrentUser(), 1) {
            @Override
            protected void handleValueChanged(int value, boolean observedChange) {
                handleRefreshState(value);