BUG: I FIX
This commit is contained in:
parent
3bd9dc031a
commit
d81391f593
10 changed files with 53 additions and 10 deletions
|
@ -31,6 +31,7 @@ import ani.dantotsu.subcriptions.Notifications.Companion.openSettings
|
|||
import ani.dantotsu.subcriptions.Subscription.Companion.getChannelId
|
||||
import com.google.android.material.chip.Chip
|
||||
import eu.kanade.tachiyomi.animesource.online.AnimeHttpSource
|
||||
import eu.kanade.tachiyomi.util.system.WebViewUtil
|
||||
import kotlinx.coroutines.MainScope
|
||||
import kotlinx.coroutines.launch
|
||||
|
||||
|
@ -245,6 +246,9 @@ class AnimeWatchAdapter(
|
|||
run = true
|
||||
}
|
||||
dialogBinding.animeWebviewContainer.setOnClickListener {
|
||||
if (!WebViewUtil.supportsWebView(fragment.requireContext())) {
|
||||
toast("WebView not installed")
|
||||
}
|
||||
//start CookieCatcher activity
|
||||
if (watchSources.names.isNotEmpty() && source in 0 until watchSources.names.size) {
|
||||
val sourceAHH = watchSources[source] as? DynamicAnimeParser
|
||||
|
|
|
@ -1806,6 +1806,7 @@ class ExoplayerView : AppCompatActivity(), Player.Listener, SessionAvailabilityL
|
|||
}
|
||||
|
||||
super.onDestroy()
|
||||
Glide.with(this).clear(exoPlay)
|
||||
finishAndRemoveTask()
|
||||
}
|
||||
|
||||
|
@ -1934,6 +1935,8 @@ class ExoplayerView : AppCompatActivity(), Player.Listener, SessionAvailabilityL
|
|||
snackString("Cast API not available")
|
||||
return
|
||||
}
|
||||
//make sure mediaItem is initialized and castPlayer is not null
|
||||
if (!this::mediaItem.isInitialized || castPlayer == null) return
|
||||
castPlayer?.setMediaItem(mediaItem)
|
||||
castPlayer?.prepare()
|
||||
playerView.player = castPlayer
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue