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:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to