Remove redundant lockscreen shown check

Symptom:
USB dialog is displayed incompletely and cannot be scrolled under
lockscreen in multi-window mode.

Root cause:
When lockscreen is shown, the bounds returned by getLaunchBounds()
is null, updateOverrideConfiguration() will finally consider the task
as fullscreen, USB dialog is under lockscreen, not over lockscreen,
as a result, the height measured in ViewRootImpl's performTraversals()
will be incorrect.

Solution:
Remove the lockscreen shown check from getLaunchBounds() which is
originally added to fix app over lockscreen being cropped by docked
stack, and the following commit also fix the behavior of app over
lockscreen.

 9973294080

So that above check should be redundant code.

Bug: 31256862
Fixes: 36163229
Test: manual
Change-Id: Iac483f625d2f4b35388290eb78a97a4bd3bd0fe8
This commit is contained in:
lei.xa.liu
2016-09-20 21:37:25 +09:00
committed by Wale Ogunwale
parent 5c0f27a24b
commit f14e93e40d

View File

@@ -2212,11 +2212,6 @@ final class TaskRecord extends ConfigurationContainer implements TaskWindowConta
/** Returns the bounds that should be used to launch this task. */
Rect getLaunchBounds() {
// If we're over lockscreen, forget about stack bounds and use fullscreen.
if (mService.mStackSupervisor.mKeyguardController.isKeyguardShowing()) {
return null;
}
if (mStack == null) {
return null;
}