OSDN Git Service

Handle clear all button show and hide functionality for low ram devices
authorMatthew Ng <ngmatthew@google.com>
Thu, 21 Sep 2017 18:10:32 +0000 (11:10 -0700)
committerMatthew Ng <ngmatthew@google.com>
Thu, 28 Sep 2017 00:10:46 +0000 (17:10 -0700)
commit9e177f05ea9a92a23ca72d9990f8a8bd7ada5f5a
treefe5b47cf6ed7c2f654ded65473688463e5a73c9a
parent9cc57140cc6b119bae6738646c28bfb240a14d14
Handle clear all button show and hide functionality for low ram devices

Hides the clear all button at the beginning and shows it when scrolling
the list up or when swiping an app away. The clear all button will not
hide when already shown. Users can also start the scroll gesture over
the clear all button to scroll the list.

Test: manual - use low ram device and go to recents and scroll
Change-Id: Ie2d22db9bdd66308ce8ef3acf77b9f707d638ade
Fixes: 65571889
packages/SystemUI/src/com/android/systemui/recents/events/activity/HideStackActionButtonEvent.java
packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.java
packages/SystemUI/src/com/android/systemui/recents/views/RecentsViewTouchHandler.java
packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java