Merge "[Bugfix] Fix the problem that the home key can not work in some cases."
This commit is contained in:
@@ -3474,7 +3474,12 @@ public class PhoneWindowManager implements WindowManagerPolicy {
|
|||||||
@Override
|
@Override
|
||||||
public void onKeyguardExitResult(boolean success) {
|
public void onKeyguardExitResult(boolean success) {
|
||||||
if (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