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

Commit 522ed24f authored by Svet Ganov's avatar Svet Ganov Committed by Svetoslav Ganov
Browse files

Use proper start op overload in all places

Test: issued a sequences of app ops that led to a crash
      and after the fix this sequence no longer causes
      a crash

bug: 74209446

Change-Id: I5064b51387ed98e42743ed94ef92114944f28761
parent 641eb554
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2610,7 +2610,7 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP
                setAppOpVisibilityLw(false);
            }
        } else {
            final int mode = mService.mAppOps.startOpNoThrow(mAppOp, uid, packageName);
            final int mode = mService.mAppOps.startOpNoThrow(mAppOp, uid, packageName, true);
            if (mode == MODE_ALLOWED || mode == MODE_DEFAULT) {
                setAppOpVisibilityLw(true);
            }