Skip to content

Commit 4f0f930

Browse files
authored
Merge pull request #156 from KuekHaoYang/fix/android-tv-pip-recursion
Fix Android TV PiP bridge recursion
2 parents a205393 + 9d76bfd commit 4f0f930

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

android-tv/app/src/main/java/com/kvideo/tv/MainActivity.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,11 +340,11 @@ class MainActivity : ComponentActivity() {
340340

341341
private inner class AndroidPlayerBridge {
342342
@JavascriptInterface
343-
fun isPictureInPictureSupported(): Boolean = isPictureInPictureSupported()
343+
fun isPictureInPictureSupported(): Boolean = this@MainActivity.isPictureInPictureSupported()
344344

345345
@JavascriptInterface
346346
fun enterPictureInPicture(width: Int, height: Int): Boolean {
347-
if (!isPictureInPictureSupported()) {
347+
if (!this@MainActivity.isPictureInPictureSupported()) {
348348
return false
349349
}
350350

0 commit comments

Comments
 (0)