Merge "[Bugfix] Fix the problem that the home key can not work in some cases." am: 1ee0562201
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2299757 Change-Id: I60d0ded466cc1876b240de1644c6d86c7b120d3f Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -3474,7 +3474,12 @@ public class PhoneWindowManager implements WindowManagerPolicy {
|
||||
@Override
|
||||
public void onKeyguardExitResult(boolean success) {
|
||||
if (success) {
|
||||
startDockOrHome(displayId, true /*fromHomeKey*/, awakenFromDreams);
|
||||
final long origId = Binder.clearCallingIdentity();
|
||||
try {
|
||||
startDockOrHome(displayId, true /*fromHomeKey*/, awakenFromDreams);
|
||||
} finally {
|
||||
Binder.restoreCallingIdentity(origId);
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user