Merge "ColorDisplayService: Check for null content observer before unregistering" into qt-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
36d2b17108
@@ -394,7 +394,9 @@ public final class ColorDisplayService extends SystemService {
|
|||||||
private void tearDown() {
|
private void tearDown() {
|
||||||
Slog.d(TAG, "tearDown: currentUser=" + mCurrentUser);
|
Slog.d(TAG, "tearDown: currentUser=" + mCurrentUser);
|
||||||
|
|
||||||
getContext().getContentResolver().unregisterContentObserver(mContentObserver);
|
if (mContentObserver != null) {
|
||||||
|
getContext().getContentResolver().unregisterContentObserver(mContentObserver);
|
||||||
|
}
|
||||||
|
|
||||||
if (mNightDisplayTintController.isAvailable(getContext())) {
|
if (mNightDisplayTintController.isAvailable(getContext())) {
|
||||||
if (mNightDisplayAutoMode != null) {
|
if (mNightDisplayAutoMode != null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user