1
0
Fork 0

No issue: remove unused restore state code

master
Emily Kager 2019-05-20 14:39:39 -07:00 committed by Jeff Boek
parent e534dad199
commit ba790c5dd3
1 changed files with 0 additions and 14 deletions

View File

@ -180,19 +180,6 @@ class HomeFragment : Fragment(), CoroutineScope {
homeDividerShadow.bringToFront()
}
override fun onViewStateRestored(savedInstanceState: Bundle?) {
super.onViewStateRestored(savedInstanceState)
if (savedInstanceState != null) {
getManagedEmitter<SessionControlChange>().onNext(
SessionControlChange.TabsChange(
(savedInstanceState.getParcelableArrayList<Tab>(
KEY_TABS
) ?: arrayListOf()).toList()
)
)
}
}
override fun onDestroyView() {
homeMenu = null
job.cancel()
@ -526,6 +513,5 @@ class HomeFragment : Fragment(), CoroutineScope {
companion object {
private const val toolbarPaddingDp = 12f
private const val KEY_TABS = "tabs"
}
}