forked from recloudstream/cloudstream
fixed resume watching
This commit is contained in:
parent
2f7f4a06a7
commit
e65ea01dda
2 changed files with 8 additions and 5 deletions
|
@ -192,14 +192,14 @@ class HomeFragment : Fragment() {
|
|||
}
|
||||
|
||||
override fun onResume() {
|
||||
backEvent += ::handleBack
|
||||
super.onResume()
|
||||
reloadStored()
|
||||
}
|
||||
|
||||
/*
|
||||
override fun onStop() {
|
||||
backEvent -= ::handleBack
|
||||
super.onStop()
|
||||
}
|
||||
}*/
|
||||
|
||||
private fun reloadStored() {
|
||||
context?.let { ctx ->
|
||||
|
@ -208,11 +208,11 @@ class HomeFragment : Fragment() {
|
|||
}
|
||||
}
|
||||
|
||||
private fun handleBack(poppedFragment: Boolean) {
|
||||
/*private fun handleBack(poppedFragment: Boolean) {
|
||||
if (poppedFragment) {
|
||||
reloadStored()
|
||||
}
|
||||
}
|
||||
}*/
|
||||
|
||||
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
|
||||
super.onViewCreated(view, savedInstanceState)
|
||||
|
|
|
@ -797,7 +797,10 @@ class ResultFragment : Fragment() {
|
|||
else -> {
|
||||
}
|
||||
}
|
||||
arguments?.remove("startValue")
|
||||
arguments?.remove("startAction")
|
||||
startAction = null
|
||||
startValue = null
|
||||
}
|
||||
|
||||
observe(viewModel.allEpisodes) {
|
||||
|
|
Loading…
Reference in a new issue