Enabling quick-switch gesture in landscape mode (2 button UI)
Bug: 130689544 Change-Id: I6b424be4d80b3bf8263f456a024a81c63100030e
This commit is contained in:
1 parent
34c630bf14
commit
2acea9f872
5 files changed
+51
-41
No files matched your search
@@ -1088,10 +1088,8 @@ public abstract class PagedView<T extends View & PageIndicator> extends ViewGrou
|
||||
|
||||
@Override
|
||||
public boolean onTouchEvent(MotionEvent ev) {
|
||||
super.onTouchEvent(ev);
|
||||
|
||||
// Skip touch handling if there are no pages to swipe
|
||||
if (getChildCount() <= 0) return super.onTouchEvent(ev);
|
||||
if (getChildCount() <= 0) return false;
|
||||
|
||||
acquireVelocityTrackerAndAddMovement(ev);
|
||||
|
||||
|
||||
Reference in new issue
Block a user