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

Commit a7f5b4d7 authored by Richard MacGregor's avatar Richard MacGregor
Browse files

Update method annotation to ensure lock is held

Bug: 331946904
Flag: EXEMPT - annotation only
Test: N/A - annotation only
Change-Id: Ia9304214451b86badac71a766fbfb43495664d48
parent b9070b2f
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -306,6 +306,7 @@ public final class SensitiveContentProtectionManagerService extends SystemServic
        }
    }

    @GuardedBy("mSensitiveContentProtectionLock")
    private void updateAppsThatShouldBlockScreenCapture() {
        RankingMap rankingMap;
        try {
@@ -318,6 +319,7 @@ public final class SensitiveContentProtectionManagerService extends SystemServic
        updateAppsThatShouldBlockScreenCapture(rankingMap);
    }

    @GuardedBy("mSensitiveContentProtectionLock")
    private void updateAppsThatShouldBlockScreenCapture(RankingMap rankingMap) {
        StatusBarNotification[] notifications;
        try {