Merge "[Bugfix] Fix the problem that the home key can not work in some cases."

This commit is contained in:
Treehugger Robot
2022-11-15 05:51:43 +00:00
committed by Gerrit Code Review

View File

@@ -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);
}
}
}
});