set last tab in popFragment
mahramane opened this issue · 1 comments
mahramane commented
Hi
I am using UniqueTabHistoryStrategy.
But I want the first tab (TabIndex), always the last tab after leaving the program when popFragment().
is it possible? please guide me
mahramane commented
i fixed it
in the UniqueTabHistoryController.java file and switchTab method, i changed
tabHistory.remove(index)
tabHistory.add(index)
to
if (index == 0) //tabIndex
tabHistory.clear()
else
tabHistory.remove(index)
tabHistory.add(index)