OSDN Git Service

Unminimizing after toggle screen on/off shows docked app correctly (1/2)
authorMatthew Ng <ngmatthew@google.com>
Mon, 13 Feb 2017 19:09:37 +0000 (11:09 -0800)
committerMatthew Ng <ngmatthew@google.com>
Thu, 23 Mar 2017 23:42:42 +0000 (16:42 -0700)
commit8e265527f93f932f3954440c82971121e2a2ccf5
tree7451da850f05567bbce2a2ea03aedbbb50f2e390
parentdbbebbc3fe548679b6a2c4811b1a9c389f516f0b
Unminimizing after toggle screen on/off shows docked app correctly (1/2)

When turning screen off when in minimized mode with resizable launcher,
then turning screen back on and unminimizing, it would have the
incorrect position of the divider from the started split position and
the docked app would have the wrong task bounds compared to its stack
bounds (so the docked app looks clipped). Block toggling minimized state
when screen turns off when being minimized will fix this.

Fixes: 3493750235388501
Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test
CtsServicesHostTestCases
android.server.cts.ActivityManagerDockedStackTests
Change-Id: I255a56d6b4041586f9125ee39f6e75a3c61f544f
services/core/java/com/android/server/wm/DockedStackDividerController.java