No need to grab lock for single read

The read is atomic anyway.

Test: Built
Change-Id: I0d62248913c2c702b62852ced5d1e60b8502d9dc
This commit is contained in:
Philip P. Moltmann
2020-02-11 17:04:59 -08:00
parent 998c6ad176
commit e276c35a5c

View File

@@ -7810,9 +7810,7 @@ public class AppOpsManager {
* @hide
*/
public static boolean isCollectingNotedAppOps() {
synchronized (sLock) {
return sNotedAppOpsCollector != null;
}
return sNotedAppOpsCollector != null;
}
/**