Page MenuHomePhabricator

Convert HistoryFragment to use a RecyclerView
Closed, ResolvedPublic2 Estimated Story Points

Description

The HistoryFragment currently shows a list of recently visited pages using a ListView but RecyclerViews better support swipe operations and nested scrolling. Update the HistoryFragment to use a RecyclerView instead.

Event Timeline

Change 349962 had a related patch set uploaded (by Dbrant):
[apps/android/wikipedia@master] Make HistoryFragment use a RecyclerView instead of ListView.

https://gerrit.wikimedia.org/r/349962

Change 349963 had a related patch set uploaded (by Dbrant):
[apps/android/wikipedia@master] Enable multi-selection in History fragment.

https://gerrit.wikimedia.org/r/349963

Change 349962 merged by jenkins-bot:
[apps/android/wikipedia@master] Make HistoryFragment use a RecyclerView instead of ListView.

https://gerrit.wikimedia.org/r/349962

Change 349963 merged by jenkins-bot:
[apps/android/wikipedia@master] Enable multi-selection in History fragment.

https://gerrit.wikimedia.org/r/349963

For QA:
Make sure the History screen behaves like before:

  • Tapping an item in the History screen should correctly navigate to the selected page.
  • Long-pressing an item in the History screen should enter a multi-selection mode, where you can select multiple items for deletion.
  • Searching within the History screen should work as before.
ABorbaWMF subscribed.

Tested on Nexus 4 Android 5.1 and Pixel Android 7.1.1 both running 2.5.195-alpha-2017-04-26

Everything appears to work fine, including swipe to delete.