Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a0f5c76f authored by Selim Cinek's avatar Selim Cinek
Browse files

Added more logging to debug the empty keyguard

Also fixed a very seldom case.

Bug: 21124013
Change-Id: I025611a36c5e80379bb88cda5bac0be04fd8ebc5
parent 6283a125
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -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;