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/01/21 09:40:08 UTC
[GitHub] [cordova-android] BekirBesli commented on issue #822: Back button
event on full screen video closes application
BekirBesli commented on issue #822: Back button event on full screen video closes application
URL: https://github.com/apache/cordova-android/issues/822#issuecomment-576597886
Thanks giuseeFG .
You will need to update appfor 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]);
}
}
----------------------------------------------------------------
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