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

Commit eb88dbbb authored by Justin Klaassen's avatar Justin Klaassen Committed by android-build-merger
Browse files

Merge "Reset last activated time after auto mode changed" into oc-dr1-dev am: 13cfb46e

am: 93bd71f1

Change-Id: I4e6dbdf32f99dcd6eea90aed9c36aee3240e3404
parents 14f8fd20 93bd71f1
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -182,6 +182,10 @@ public final class NightDisplayController {
            throw new IllegalArgumentException("Invalid autoMode: " + autoMode);
        }

        if (getAutoMode() != autoMode) {
            Secure.putLongForUser(mContext.getContentResolver(),
                    Secure.NIGHT_DISPLAY_LAST_ACTIVATED_TIME, -1L, mUserId);
        }
        return Secure.putIntForUser(mContext.getContentResolver(),
                Secure.NIGHT_DISPLAY_AUTO_MODE, autoMode, mUserId);
    }