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

Commit c3882af2 authored by Matt Pietal's avatar Matt Pietal Committed by Android (Google) Code Review
Browse files

Merge "Add NPE check around live data" into main

parents 513f9f9f 94df6176
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -140,7 +140,7 @@ public class KeyguardSliceViewController extends ViewController<KeyguardSliceVie
    @Override
    protected void onViewDetached() {
        // TODO(b/117344873) Remove below work around after this issue be fixed.
        if (mDisplayId == mDisplayTracker.getDefaultDisplayId()) {
        if (mDisplayId == mDisplayTracker.getDefaultDisplayId() && mLiveData != null) {
            mLiveData.removeObserver(mObserver);
        }
        mConfigurationController.removeCallback(mConfigurationListener);