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

Commit ca1e80c3 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

Change-Id: Ice12c72a50ccc730999fe17781641f383d366087
parents 89dc284e 1c3efbc4
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) {