Skip to content

Commit

Permalink
Trigger transaction listener when restoring tab from bundle
Browse files Browse the repository at this point in the history
`FragNavController.restoreFromBundle` attempts to re-select the
previously selected tab when restoring its state from a `Bundle`, but
was not notifying the `TransactionListener` (if one was set).
  • Loading branch information
erawhctim committed Mar 5, 2019
1 parent 40de99a commit 8cc95c9
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -839,6 +839,8 @@ class FragNavController constructor(private val fragmentManger: FragmentManager,
// We cannot use switchTab, because switchTab removes fragment, but we don't want it
currentStackIndex = selectedTabIndex
fragNavTabHistoryController.switchTab(selectedTabIndex)

transactionListener?.onTabTransaction(mCurrentFrag, selectedTabIndex)
}

//Successfully restored state
Expand Down

0 comments on commit 8cc95c9

Please sign in to comment.