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

Commit 0e220628 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: ecd6a219

Change-Id: I59a3e990c62adccd0893077f519b62dc5293bb2b
parents 740e99e9 ecd6a219
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) {