|
|
@ -266,15 +266,7 @@ class HomeFragment : Fragment(), CoroutineScope, AccountObserver {
|
|
|
|
|
|
|
|
|
|
|
|
override fun onResume() {
|
|
|
|
override fun onResume() {
|
|
|
|
super.onResume()
|
|
|
|
super.onResume()
|
|
|
|
(activity as AppCompatActivity).supportActionBar?.hide()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
requireComponents.backgroundServices.accountManager.register(this, owner = this)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@SuppressWarnings("ComplexMethod")
|
|
|
|
|
|
|
|
override fun onStart() {
|
|
|
|
|
|
|
|
super.onStart()
|
|
|
|
|
|
|
|
if (isAdded) {
|
|
|
|
|
|
|
|
getAutoDisposeObservable<SessionControlAction>()
|
|
|
|
getAutoDisposeObservable<SessionControlAction>()
|
|
|
|
.subscribe {
|
|
|
|
.subscribe {
|
|
|
|
when (it) {
|
|
|
|
when (it) {
|
|
|
@ -283,7 +275,6 @@ class HomeFragment : Fragment(), CoroutineScope, AccountObserver {
|
|
|
|
is SessionControlAction.Onboarding -> handleOnboardingAction(it.action)
|
|
|
|
is SessionControlAction.Onboarding -> handleOnboardingAction(it.action)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getManagedEmitter<SessionControlChange>().onNext(
|
|
|
|
getManagedEmitter<SessionControlChange>().onNext(
|
|
|
|
SessionControlChange.Change(
|
|
|
|
SessionControlChange.Change(
|
|
|
@ -293,6 +284,14 @@ class HomeFragment : Fragment(), CoroutineScope, AccountObserver {
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(activity as AppCompatActivity).supportActionBar?.hide()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
requireComponents.backgroundServices.accountManager.register(this, owner = this)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@SuppressWarnings("ComplexMethod")
|
|
|
|
|
|
|
|
override fun onStart() {
|
|
|
|
|
|
|
|
super.onStart()
|
|
|
|
requireComponents.core.tabCollectionStorage.register(collectionStorageObserver, this)
|
|
|
|
requireComponents.core.tabCollectionStorage.register(collectionStorageObserver, this)
|
|
|
|
sessionObserver.onStart()
|
|
|
|
sessionObserver.onStart()
|
|
|
|
tabCollectionObserver = subscribeToTabCollections()
|
|
|
|
tabCollectionObserver = subscribeToTabCollections()
|
|
|
|