mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
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() {
|
override fun onResume() {
|
||||||
backEvent += ::handleBack
|
|
||||||
super.onResume()
|
super.onResume()
|
||||||
|
reloadStored()
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
override fun onStop() {
|
override fun onStop() {
|
||||||
backEvent -= ::handleBack
|
backEvent -= ::handleBack
|
||||||
super.onStop()
|
super.onStop()
|
||||||
}
|
}*/
|
||||||
|
|
||||||
private fun reloadStored() {
|
private fun reloadStored() {
|
||||||
context?.let { ctx ->
|
context?.let { ctx ->
|
||||||
|
@ -208,11 +208,11 @@ class HomeFragment : Fragment() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun handleBack(poppedFragment: Boolean) {
|
/*private fun handleBack(poppedFragment: Boolean) {
|
||||||
if (poppedFragment) {
|
if (poppedFragment) {
|
||||||
reloadStored()
|
reloadStored()
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
|
|
||||||
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
|
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
|
||||||
super.onViewCreated(view, savedInstanceState)
|
super.onViewCreated(view, savedInstanceState)
|
||||||
|
|
|
@ -797,7 +797,10 @@ class ResultFragment : Fragment() {
|
||||||
else -> {
|
else -> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
arguments?.remove("startValue")
|
||||||
|
arguments?.remove("startAction")
|
||||||
startAction = null
|
startAction = null
|
||||||
|
startValue = null
|
||||||
}
|
}
|
||||||
|
|
||||||
observe(viewModel.allEpisodes) {
|
observe(viewModel.allEpisodes) {
|
||||||
|
|
Loading…
Reference in a new issue