Skip to content
Permalink
Browse files

Revert "Save carousel's scroll position in DiscoverFragment" (#485)

Revert "Save carousel's scroll position in DiscoverFragment"
  • Loading branch information...
chrisbanes committed Oct 7, 2019
2 parents 59c3bd5 + 80eec48 commit 94c49ba530377457f82b43c9ae548220213bf362
Showing with 0 additions and 11 deletions.
  1. +0 −11 ui-discover/src/main/java/app/tivi/home/discover/DiscoverFragment.kt
@@ -62,7 +62,6 @@ class DiscoverFragment : DaggerMvRxFragment() {
}

override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
controller.onRestoreInstanceState(savedInstanceState)
binding = FragmentDiscoverBinding.inflate(inflater, container, false)
binding.lifecycleOwner = viewLifecycleOwner
return binding.root
@@ -180,11 +179,6 @@ class DiscoverFragment : DaggerMvRxFragment() {
}
}

override fun onSaveInstanceState(outState: Bundle) {
super.onSaveInstanceState(outState)
controller.onSaveInstanceState(outState)
}

override fun invalidate() {
withState(viewModel) { state ->
if (binding.state == null) {
@@ -198,9 +192,4 @@ class DiscoverFragment : DaggerMvRxFragment() {
controller.setData(state)
}
}

override fun onDestroyView() {
binding.summaryRv.clear()
super.onDestroyView()
}
}

0 comments on commit 94c49ba

Please sign in to comment.
You can’t perform that action at this time.