Bug 800883 - Ensure tab button is never left in pressed state (r=mfinkle)
authorLucas Rocha <lucasr@mozilla.com>
Thu, 18 Oct 2012 14:00:15 +0100
changeset 110662 c228ab000f4f52d2d12c9280960e90528373a103
parent 110657 d243048bc966c3657962ba32c93db77089667abc
child 110663 56d0d35f515a0355a8345897f11358e160439146
push id23708
push userryanvm@gmail.com
push dateFri, 19 Oct 2012 01:28:59 +0000
treeherdermozilla-central@fd5556088388 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle
bugs800883
milestone19.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 800883 - Ensure tab button is never left in pressed state (r=mfinkle)
mobile/android/base/TabsTray.java
--- a/mobile/android/base/TabsTray.java
+++ b/mobile/android/base/TabsTray.java
@@ -412,16 +412,17 @@ public class TabsTray extends LinearLayo
                     view.onTouchEvent(e);
                     return true;
                 }
 
                 case MotionEvent.ACTION_UP: {
                     if (mSwipeView == null)
                         break;
 
+                    cancelCheckForTap();
                     mSwipeView.setPressed(false);
 
                     if (!mSwiping) {
                         TabRow tab = (TabRow) mSwipeView.getTag();
                         Tabs.getInstance().selectTab(tab.id);
                         autoHidePanel();
                         break;
                     }