No need to grab lock for single read
The read is atomic anyway. Test: Built Change-Id: I0d62248913c2c702b62852ced5d1e60b8502d9dc
This commit is contained in:
@@ -7810,9 +7810,7 @@ public class AppOpsManager {
|
||||
* @hide
|
||||
*/
|
||||
public static boolean isCollectingNotedAppOps() {
|
||||
synchronized (sLock) {
|
||||
return sNotedAppOpsCollector != null;
|
||||
}
|
||||
return sNotedAppOpsCollector != null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user