Persist swiped space across viewpager recreations

Change-Id: I8a4010b8eaddcfe2ee906cb559336dc4c2e05bef
This commit is contained in:
SpiritCroc 2022-04-05 10:42:24 +02:00
parent c1149858c4
commit 14d7921f35

View file

@ -568,6 +568,8 @@ class HomeDetailFragment @Inject constructor(
transaction.commit()
}
}
// In case the last space change was caused by swiping, we don't want to lose it
appStateHandler.persistSelectedSpace()
pagerSpaces = safeSpaces
pagerTab = tab
pagerPagingEnabled = pagingEnabled