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

Commit 6e5c941e authored by Matt Pietal's avatar Matt Pietal
Browse files

Catch exception on KeyguardSliceProvider

Catch a rare binder call exception to avoid SystemUI crash.

Fixes: 368479416
Test: manual - rare condition, cannot repro
Flag: EXEMPT bugfix
Change-Id: I026567ff0f4ba26a2ffd2c8d5b4b0305a5a1cb38
parent ac81468f
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -515,7 +515,13 @@ public class KeyguardSliceProvider extends SliceProvider implements
    }

    protected void notifyChange() {
        mBgHandler.post(() -> mContentResolver.notifyChange(mSliceUri, null /* observer */));
        mBgHandler.post(() -> {
            try {
                mContentResolver.notifyChange(mSliceUri, null /* observer */);
            } catch (Exception e) {
                Log.e(TAG, "Error on mContentResolver.notifyChange()", e);
            }
        });
    }

    @Override