mirror of
https://github.com/KuekHaoYang/KVideo.git
synced 2026-08-12 23:33:43 +08:00
Merge pull request #156 from KuekHaoYang/fix/android-tv-pip-recursion
Fix Android TV PiP bridge recursion
This commit is contained in:
@@ -340,11 +340,11 @@ class MainActivity : ComponentActivity() {
|
||||
|
||||
private inner class AndroidPlayerBridge {
|
||||
@JavascriptInterface
|
||||
fun isPictureInPictureSupported(): Boolean = isPictureInPictureSupported()
|
||||
fun isPictureInPictureSupported(): Boolean = this@MainActivity.isPictureInPictureSupported()
|
||||
|
||||
@JavascriptInterface
|
||||
fun enterPictureInPicture(width: Int, height: Int): Boolean {
|
||||
if (!isPictureInPictureSupported()) {
|
||||
if (!this@MainActivity.isPictureInPictureSupported()) {
|
||||
return false
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user