Remember game list scroll

This commit is contained in:
iota97 committed 2020-11-23 10:10:20 +01:00
1 parent 388ac3c9ae
commit a014d7c785
6 files changed
+13 -7

No files matched your search

+1 -1
View File
@@ -860,7 +860,7 @@ void ScrollView::PersistData(PersistStatus status, std::string anonId, PersistMa
void ScrollView::SetVisibility(Visibility visibility) {
ViewGroup::SetVisibility(visibility);
if (visibility == V_GONE) {
if (visibility == V_GONE && !rememberPosition_) {
// Since this is no longer shown, forget the scroll position.
// For example, this happens when switching tabs.
ScrollTo(0.0f);