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

Commit bddd3f1d authored by Ned Burns's avatar Ned Burns
Browse files

Change NVHM protection from crash to Log.wtf

Bug: 135018709
Test: manual, atest
Change-Id: Ib0520ad581aeb653b53e84d8dda6e471b702df20
parent 949a22d7
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -440,14 +440,14 @@ public class NotificationViewHierarchyManager implements DynamicPrivacyControlle


    private void beginUpdate() {
    private void beginUpdate() {
        if (mPerformingUpdate) {
        if (mPerformingUpdate) {
            throw new IllegalStateException("Re-entrant code during update.");
            Log.wtf(TAG, "Re-entrant code during update", new Exception());
        }
        }
        mPerformingUpdate = true;
        mPerformingUpdate = true;
    }
    }


    private void endUpdate() {
    private void endUpdate() {
        if (!mPerformingUpdate) {
        if (!mPerformingUpdate) {
            throw new IllegalStateException("Manager state has become desynced.");
            Log.wtf(TAG, "Manager state has become desynced", new Exception());
        }
        }
        mPerformingUpdate = false;
        mPerformingUpdate = false;
    }
    }