cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [cordova-android] hammadjamil commented on issue #822: Back button event on full screen video closes application
Date Wed, 22 Apr 2020 21:08:59 GMT

hammadjamil commented on issue #822:
URL: https://github.com/apache/cordova-android/issues/822#issuecomment-618041636


   > add this in MainActivity.java
   > it works.
   > 
   > ```java
   > @Override
   > public void onBackPressed() {
   >     this.appView.loadUrl("javascript:if (document.webkitExitFullscreen) {document.webkitExitFullscreen();}");
   >     return;
   > }
   > ```
   
   **Yaayy it worked. Thanks man** 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message