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

Commit 3477e8fa authored by Keun young Park's avatar Keun young Park Committed by android-build-merger
Browse files

Merge "ColorDisplayService: Check for null content observer before...

Merge "ColorDisplayService: Check for null content observer before unregistering" into qt-dev am: 36d2b171 am: 1c3efbc4
am: ca1e80c3

Change-Id: I3058dd33fad5bda6469c73f9a1b3263296679045
parents b47f743a ca1e80c3
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -394,7 +394,9 @@ public final class ColorDisplayService extends SystemService {
    private void tearDown() {
        Slog.d(TAG, "tearDown: currentUser=" + mCurrentUser);

        if (mContentObserver != null) {
            getContext().getContentResolver().unregisterContentObserver(mContentObserver);
        }

        if (mNightDisplayTintController.isAvailable(getContext())) {
            if (mNightDisplayAutoMode != null) {