diff --git a/app/src/main/java/org/mozilla/fenix/home/HomeFragment.kt b/app/src/main/java/org/mozilla/fenix/home/HomeFragment.kt index e0b50b62a6..2048af7450 100644 --- a/app/src/main/java/org/mozilla/fenix/home/HomeFragment.kt +++ b/app/src/main/java/org/mozilla/fenix/home/HomeFragment.kt @@ -250,18 +250,7 @@ class HomeFragment : Fragment(), CoroutineScope, AccountObserver { is SessionControlAction.Tab -> handleTabAction(it.action) is SessionControlAction.Collection -> handleCollectionAction(it.action) is SessionControlAction.Onboarding -> handleOnboardingAction(it.action) - is SessionControlAction.ReloadData -> { - val homeViewModel = activity?.run { - ViewModelProviders.of(this).get(HomeScreenViewModel::class.java) - } - homeViewModel?.layoutManagerState?.also { parcelable -> - sessionControlComponent.view.layoutManager?.onRestoreInstanceState(parcelable) - } - val progress = homeViewModel?.motionLayoutProgress - homeLayout?.progress = - if (progress ?: 0F > MOTION_LAYOUT_PROGRESS_ROUND_POINT) 1.0f else 0f - homeViewModel?.layoutManagerState = null - } + is SessionControlAction.ReloadData -> { } } } }