OSDN Git Service

Fix for missing location icon
authorAmith Yamasani <yamasani@google.com>
Tue, 29 May 2018 03:50:48 +0000 (20:50 -0700)
committerAmith Yamasani <yamasani@google.com>
Tue, 29 May 2018 04:20:56 +0000 (21:20 -0700)
commita1ce9637435f28b1de2b9e8e8a2175b53cc9e0f2
treed307f0df8050742939bf89a5a7de860af9b94429
parent9d19487b1c144316dfa208ea61fb733e3946af5a
Fix for missing location icon

OpEntry.duration was being used to indicate that the
operation was still running if -1 is returned. A recent
change caused a regression.

Adding a new mRunning field in OpEntry to explicitly
hold the running state, even when partial duration is
updated.

Change-Id: Ib29f4c903f990aaa202e84f964959aedfc24abdb
Fixes: 80242152
Test: atest FrameworksServicesTests:AppOpsActiveWatcherTest
Test: Launch maps and verify the location icon is visible
      in the status bar
core/java/android/app/AppOpsManager.java
services/core/java/com/android/server/AppOpsService.java
services/tests/servicestests/src/com/android/server/appops/AppOpsActiveWatcherTest.java