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

Commit 2c35514e authored by Daniel Sandler's avatar Daniel Sandler Committed by Android Git Automerger
Browse files

am b9c0ebc1: am 3fd688fa: Merge changes Ifad4bd65,I6a4b7d69 into jb-mr1-dev

* commit 'b9c0ebc1':
  Turn off an assert.
  Fix crash in SystemUI.
parents 57ccc62e b9c0ebc1
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -101,8 +101,7 @@ public class GestureRecorder {
                mDownTime = ev.getDownTime();
            } else {
                if (mDownTime != ev.getDownTime()) {
                    // TODO: remove
                    throw new RuntimeException("Assertion failure in GestureRecorder: event downTime ("
                    Slog.w(TAG, "Assertion failure in GestureRecorder: event downTime ("
                            +ev.getDownTime()+") does not match gesture downTime ("+mDownTime+")");
                }
            }
+7 −2
Original line number Diff line number Diff line
@@ -59,6 +59,11 @@ public class PanelView extends FrameLayout {
        }
    };

    private final Runnable mStopAnimator = new Runnable() { public void run() {
        if (mTimeAnimator.isStarted()) {
            mTimeAnimator.end(); }
    }};

    private float mVel, mAccel;
    private int mFullHeight = 0;
    private String mViewName; 
@@ -117,7 +122,7 @@ public class PanelView extends FrameLayout {
            if (mVel == 0
                    || (closing && mExpandedHeight == 0)
                    || (!closing && mExpandedHeight == getFullHeight())) {
                mTimeAnimator.end();
                post(mStopAnimator);
            }
        }
    }
@@ -277,7 +282,7 @@ public class PanelView extends FrameLayout {


    public void setExpandedHeight(float height) {
        mTimeAnimator.end();
        post(mStopAnimator);
        setExpandedHeightInternal(height);
    }