You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2020/03/09 07:16:42 UTC
[GitHub] [cordova-android] GawandeC commented on issue #822: Back button
event on full screen video closes application
GawandeC commented on issue #822: Back button event on full screen video closes application
URL: https://github.com/apache/cordova-android/issues/822#issuecomment-596365676
> Thanks giuseeFG
>
> You will need to update app for this process.
> besides Instead of direct processing from here, you can direct it to an existing javascript function.
>
> --
> @override
> public void onBackPressed() {
> this.appView.loadUrl("javascript:backexit();");
> return;
> }
>
> document.addEventListener('backbutton', backexit, false);
> function backexit(){
>
> ```
> if (leftView.activePage.name != "student") {
> if (document.webkitIsFullScreen == true) {
> document.webkitExitFullscreen();
> }else{
> leftView.router.back();
> }
> }else {
> navigator.notification.confirm(translate.alert_message, app.onConfirm, appName,
> [translate.no, translate.yes]);
> }
> ```
>
> }
where to add this code??
----------------------------------------------------------------
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
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org