diff options
author | Amith Yamasani <yamasani@google.com> | 2015-11-20 09:44:08 -0800 |
---|---|---|
committer | The Android Automerger <android-build@google.com> | 2016-02-16 12:28:30 -0800 |
commit | 1e24c428efa7b0836154fa909bdcf2d3e7210462 (patch) | |
tree | 21aa8f2bfaf5b1686f8b4759b5f5bb2de37bfa82 | |
parent | bea20d574e7c94ff4664a5d2ada5dc1f70614e2c (diff) | |
download | frameworks_base-1e24c428efa7b0836154fa909bdcf2d3e7210462.zip frameworks_base-1e24c428efa7b0836154fa909bdcf2d3e7210462.tar.gz frameworks_base-1e24c428efa7b0836154fa909bdcf2d3e7210462.tar.bz2 |
Fix missing observer reply callbacks
This was causing upto 2 seconds in user switching delay.
Bug: 25813588
Change-Id: Icf23b021f134a8ccfa2dae470af02b2da7454acc
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarPolicy.java | 6 | ||||
-rw-r--r-- | services/core/java/com/android/server/fingerprint/FingerprintService.java | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarPolicy.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarPolicy.java index fa9c4bb..83edc96 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarPolicy.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarPolicy.java @@ -383,6 +383,12 @@ public class PhoneStatusBarPolicy implements Callback { @Override public void onUserSwitching(int newUserId, IRemoteCallback reply) { mUserInfoController.reloadUserInfo(); + if (reply != null) { + try { + reply.sendResult(null); + } catch (RemoteException e) { + } + } } @Override diff --git a/services/core/java/com/android/server/fingerprint/FingerprintService.java b/services/core/java/com/android/server/fingerprint/FingerprintService.java index ec7c1c4..103ed0a 100644 --- a/services/core/java/com/android/server/fingerprint/FingerprintService.java +++ b/services/core/java/com/android/server/fingerprint/FingerprintService.java @@ -1139,6 +1139,12 @@ public class FingerprintService extends SystemService implements IBinder.DeathRe public void onUserSwitching(int newUserId, IRemoteCallback reply) { mHandler.obtainMessage(MSG_USER_SWITCHING, newUserId, 0 /* unused */) .sendToTarget(); + if (reply != null) { + try { + reply.sendResult(null); + } catch (RemoteException e) { + } + } } @Override public void onUserSwitchComplete(int newUserId) throws RemoteException { |