Added more logging to debug the empty keyguard

Also fixed a very seldom case.

Bug: 21124013
Change-Id: I025611a36c5e80379bb88cda5bac0be04fd8ebc5
This commit is contained in:
Selim Cinek
2015-06-22 14:44:46 -04:00
parent 6283a12579
commit a0f5c76ffd

View File

@@ -172,12 +172,7 @@ public abstract class PanelView extends FrameLayout {
public void onAnimationEnd(Animator animation) { public void onAnimationEnd(Animator animation) {
mPeekAnimator = null; mPeekAnimator = null;
if (mCollapseAfterPeek && !mCancelled) { if (mCollapseAfterPeek && !mCancelled) {
postOnAnimation(new Runnable() { postOnAnimation(mPostCollapseRunnable);
@Override
public void run() {
collapse(false /* delayed */, 1.0f /* speedUpFactor */);
}
});
} }
mCollapseAfterPeek = false; mCollapseAfterPeek = false;
} }
@@ -663,6 +658,11 @@ public abstract class PanelView extends FrameLayout {
(animator.getDuration() * getCannedFlingDurationFactor() (animator.getDuration() * getCannedFlingDurationFactor()
/ collapseSpeedUpFactor)); / 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() { animator.addListener(new AnimatorListenerAdapter() {
private boolean mCancelled; private boolean mCancelled;