KeyguardStatusBar: Fix bad state after canceled animation

Fixes a bug where the icon area and user switcher
could overlap if the animation was canceled at a
bad time.

Change-Id: I21713512fb5c70c45439258609b87a585675304a
Fixes: 30865084
This commit is contained in:
Adrian Roos
2016-09-07 15:16:22 -07:00
parent a2153e6246
commit e2f6173bc0

View File

@@ -308,6 +308,7 @@ public class KeyguardStatusBarView extends RelativeLayout
super.setVisibility(visibility);
if (visibility != View.VISIBLE) {
mSystemIconsSuperContainer.animate().cancel();
mSystemIconsSuperContainer.setTranslationX(0);
mMultiUserSwitch.animate().cancel();
mMultiUserSwitch.setAlpha(1f);
} else {