diff options
| author | 2012-08-16 12:52:18 -0700 | |
|---|---|---|
| committer | 2012-08-16 12:52:18 -0700 | |
| commit | 3fd688fa50b518ca0b2bf0932dc7ab7197da6b1d (patch) | |
| tree | 18e8365a8147a729e638608316ffdedbf4dd3604 | |
| parent | f02b60aa4f367516f40cf3d60fffae0c6fe3e1b8 (diff) | |
| parent | fa71962948092786c5190f39fd25ce3d55a4e287 (diff) | |
Merge changes Ifad4bd65,I6a4b7d69 into jb-mr1-dev
* changes:
Turn off an assert.
Fix crash in SystemUI.
| -rwxr-xr-x | packages/SystemUI/src/com/android/systemui/statusbar/GestureRecorder.java | 3 | ||||
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelView.java | 9 |
2 files changed, 8 insertions, 4 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/GestureRecorder.java b/packages/SystemUI/src/com/android/systemui/statusbar/GestureRecorder.java index 81a16ae42e4a..0f894a154f39 100755 --- a/packages/SystemUI/src/com/android/systemui/statusbar/GestureRecorder.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/GestureRecorder.java @@ -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+")"); } } diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelView.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelView.java index d0fba4256ba7..336eee4a9cf5 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelView.java @@ -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); } |