version 1.0.0 #67

Merged
Seil0 merged 137 commits from develop into master 2022-10-12 15:36:39 +02:00
2 changed files with 9 additions and 1 deletions
Showing only changes of commit aa49169034 - Show all commits

View File

@ -78,6 +78,12 @@ class MediaFragment(private val mediaIdStr: String) : Fragment() {
super.onResume()
if (runOnResume) {
/**
* FIXME
* this is currently also run on back press when multiple MediaFragments have
* been open and closed via similar tab
*/
lifecycleScope.launch {
model.updateOnResume()

View File

@ -62,7 +62,9 @@ class MediaFragmentEpisodes : Fragment() {
@SuppressLint("NotifyDataSetChanged")
fun updateWatchedState() {
// model.currentPlayheads is a val mutable map -> notify dataset changed
adapterRecEpisodes.notifyDataSetChanged()
if (this::adapterRecEpisodes.isInitialized) {
adapterRecEpisodes.notifyDataSetChanged()
}
}
private fun showSeasonSelection(v: View) {