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) {
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;