Loading packages/SystemUI/src/com/android/systemui/statusbar/GestureRecorder.java +1 −2 Original line number Original line Diff line number Diff line Loading @@ -101,8 +101,7 @@ public class GestureRecorder { mDownTime = ev.getDownTime(); mDownTime = ev.getDownTime(); } else { } else { if (mDownTime != ev.getDownTime()) { if (mDownTime != ev.getDownTime()) { // TODO: remove Slog.w(TAG, "Assertion failure in GestureRecorder: event downTime (" throw new RuntimeException("Assertion failure in GestureRecorder: event downTime (" +ev.getDownTime()+") does not match gesture downTime ("+mDownTime+")"); +ev.getDownTime()+") does not match gesture downTime ("+mDownTime+")"); } } } } Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelView.java +7 −2 Original line number Original line Diff line number Diff line Loading @@ -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 float mVel, mAccel; private int mFullHeight = 0; private int mFullHeight = 0; private String mViewName; private String mViewName; Loading Loading @@ -117,7 +122,7 @@ public class PanelView extends FrameLayout { if (mVel == 0 if (mVel == 0 || (closing && mExpandedHeight == 0) || (closing && mExpandedHeight == 0) || (!closing && mExpandedHeight == getFullHeight())) { || (!closing && mExpandedHeight == getFullHeight())) { mTimeAnimator.end(); post(mStopAnimator); } } } } } } Loading Loading @@ -277,7 +282,7 @@ public class PanelView extends FrameLayout { public void setExpandedHeight(float height) { public void setExpandedHeight(float height) { mTimeAnimator.end(); post(mStopAnimator); setExpandedHeightInternal(height); setExpandedHeightInternal(height); } } Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/GestureRecorder.java +1 −2 Original line number Original line Diff line number Diff line Loading @@ -101,8 +101,7 @@ public class GestureRecorder { mDownTime = ev.getDownTime(); mDownTime = ev.getDownTime(); } else { } else { if (mDownTime != ev.getDownTime()) { if (mDownTime != ev.getDownTime()) { // TODO: remove Slog.w(TAG, "Assertion failure in GestureRecorder: event downTime (" throw new RuntimeException("Assertion failure in GestureRecorder: event downTime (" +ev.getDownTime()+") does not match gesture downTime ("+mDownTime+")"); +ev.getDownTime()+") does not match gesture downTime ("+mDownTime+")"); } } } } Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelView.java +7 −2 Original line number Original line Diff line number Diff line Loading @@ -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 float mVel, mAccel; private int mFullHeight = 0; private int mFullHeight = 0; private String mViewName; private String mViewName; Loading Loading @@ -117,7 +122,7 @@ public class PanelView extends FrameLayout { if (mVel == 0 if (mVel == 0 || (closing && mExpandedHeight == 0) || (closing && mExpandedHeight == 0) || (!closing && mExpandedHeight == getFullHeight())) { || (!closing && mExpandedHeight == getFullHeight())) { mTimeAnimator.end(); post(mStopAnimator); } } } } } } Loading Loading @@ -277,7 +282,7 @@ public class PanelView extends FrameLayout { public void setExpandedHeight(float height) { public void setExpandedHeight(float height) { mTimeAnimator.end(); post(mStopAnimator); setExpandedHeightInternal(height); setExpandedHeightInternal(height); } } Loading