mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-05 10:26:52 +00:00
Merge "Reset touch state when removing all tasks in RecentsView.applyLoadPlan" into tm-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
37fa1392ec
@@ -1396,6 +1396,9 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
|
||||
if (taskGroups == null || taskGroups.isEmpty()) {
|
||||
removeTasksViewsAndClearAllButton();
|
||||
onTaskStackUpdated();
|
||||
// With all tasks removed, touch handling in PagedView is disabled and we need to reset
|
||||
// touch state or otherwise values will be obsolete.
|
||||
resetTouchState();
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -1440,7 +1440,7 @@ public abstract class PagedView<T extends View & PageIndicator> extends ViewGrou
|
||||
return Math.abs(velocity) > threshold;
|
||||
}
|
||||
|
||||
private void resetTouchState() {
|
||||
protected void resetTouchState() {
|
||||
releaseVelocityTracker();
|
||||
mIsBeingDragged = false;
|
||||
mActivePointerId = INVALID_POINTER;
|
||||
|
||||
Reference in New Issue
Block a user