From a0f5c76ffdc728c9f291addd3f4a7bc2d1817733 Mon Sep 17 00:00:00 2001 From: Selim Cinek Date: Mon, 22 Jun 2015 14:44:46 -0400 Subject: [PATCH] Added more logging to debug the empty keyguard Also fixed a very seldom case. Bug: 21124013 Change-Id: I025611a36c5e80379bb88cda5bac0be04fd8ebc5 --- .../android/systemui/statusbar/phone/PanelView.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelView.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelView.java index 094d5f0b76010..39a06aa777568 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelView.java @@ -172,12 +172,7 @@ public abstract class PanelView extends FrameLayout { public void onAnimationEnd(Animator animation) { mPeekAnimator = null; if (mCollapseAfterPeek && !mCancelled) { - postOnAnimation(new Runnable() { - @Override - public void run() { - collapse(false /* delayed */, 1.0f /* speedUpFactor */); - } - }); + postOnAnimation(mPostCollapseRunnable); } mCollapseAfterPeek = false; } @@ -663,6 +658,11 @@ public abstract class PanelView extends FrameLayout { (animator.getDuration() * getCannedFlingDurationFactor() / collapseSpeedUpFactor)); } + if (PhoneStatusBar.DEBUG_EMPTY_KEYGUARD + && mStatusBar.getBarState() == StatusBarState.KEYGUARD) { + Log.i(PhoneStatusBar.TAG, "Panel collapsed! Stacktrace: " + + Log.getStackTraceString(new Throwable())); + } } animator.addListener(new AnimatorListenerAdapter() { private boolean mCancelled;