OSDN Git Service

DO NOT MERGE Ensure minimized state is false when dock is gone on exists change
authorMatthew Ng <ngmatthew@google.com>
Mon, 19 Jun 2017 23:42:31 +0000 (16:42 -0700)
committerMatthew Ng <ngmatthew@google.com>
Thu, 6 Jul 2017 19:22:30 +0000 (19:22 +0000)
commit9c0f485807b08b6a5a27b10c014476a6a023e55a
tree62fe46961055eeeb151eb00e03423f677c8434e5
parent21fe942d88d839db2e9dec3dc165ef976fcba2dd
DO NOT MERGE Ensure minimized state is false when dock is gone on exists change

Whenever registerDockedStackListener runs, it will unminimize the docked
stack even if it was not supposed to. The previous change that caused
this was the test ag/1718898,
ActivityManagerDockedStackTests#testFinishDockActivityWhileMinimized
where an activity runs finish() while minimized would remove the
divider but not update the minimized mode. This change will only set the
minimized mode to false if the divider is invisible allowing
registerDockedStackListener to not unminimize.

Fixes: 62460975
Fixes: 63381251
Test: go/wm-smoke
Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test
CtsServicesHostTestCases
android.server.cts.ActivityManagerDockedStackTests#
testFinishDockActivityWhileMinimized
Change-Id: I2baaac9ce50b8ed792356cbaeeedef6bddc271d3
(cherry picked from commit bc527a3a26a48afd04e8ad10893a38996177bc53)
services/core/java/com/android/server/wm/DockedStackDividerController.java