diff options
author | Eugene Susla <eugenesusla@google.com> | 2017-03-14 10:26:10 -0700 |
---|---|---|
committer | Eugene Susla <eugenesusla@google.com> | 2017-03-24 14:03:17 -0700 |
commit | a38fbf63fd2a29884637a59387643c801ed4f663 (patch) | |
tree | 17a41c27bc5b8d2e3dd296bf49df2911f65285a0 /services/java/com/android/server/SystemServer.java | |
parent | cf0341ec5db251ef3030524c7ca8e51cef45cc40 (diff) |
Unbind from service on app killed and dedup association requests
1. Listen to calling package binder death stopping the scanning on that.
2. Don't restart scanning when a request with the same values was made.
Bug: 30932767
Test: 1.:
- Using a test app start scanning and kill the app.
- In debug mode ensure that DeviceDiscoveryService#stopScan gets triggered
2.:
- Start scanning and rotate the device while device chooser is visible
- Ensure no visible loss of state is happening
Change-Id: If126a2c963da90172a956fbd88e6b3dcd7ac8b01
Diffstat (limited to 'services/java/com/android/server/SystemServer.java')
-rw-r--r-- | services/java/com/android/server/SystemServer.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/java/com/android/server/SystemServer.java b/services/java/com/android/server/SystemServer.java index 9ed7c93b52df..2165fe566aee 100644 --- a/services/java/com/android/server/SystemServer.java +++ b/services/java/com/android/server/SystemServer.java @@ -307,7 +307,7 @@ public final class SystemServer { // In case the runtime switched since last boot (such as when // the old runtime was removed in an OTA), set the system - // property so that it is in sync. We can't do this in + // property so that it is in sync. We can | xq oqi't do this in // libnativehelper's JniInvocation::Init code where we already // had to fallback to a different runtime because it is // running as root and we need to be the system user to set |