OSDN Git Service

Fix issue #34327404: AppOpsManager.stopWatchingMode(callback)...
authorDianne Hackborn <hackbod@google.com>
Mon, 27 Feb 2017 23:32:03 +0000 (15:32 -0800)
committerDianne Hackborn <hackbod@google.com>
Tue, 28 Feb 2017 00:27:17 +0000 (16:27 -0800)
commit68d76555582ebd414158af9874f64bae3832540c
treeaaf990b0a20399a69b9ba42bf1af285d43565b0f
parenteb422ead0cd7101855db4bff50cb71321cee2377
Fix issue #34327404: AppOpsManager.stopWatchingMode(callback)...

...does not remove all references to callback

Keep the callbacks in a set, so each callback can only appear once.

Test: none currently, not sure how to do a CTS test for this.
(But verifying the system boots and runs.)

Change-Id: I01c8ea2a662e09ad0a0cdf713f0ea7f175182e82
services/core/java/com/android/server/AppOpsService.java