nomaam opened a new issue #835:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/835
I am trying to control the hardware back button for Android in Java file
InAppBrowserDialog.java
public void onBackPressed() {
if (this.inAppBrowser == null) {
this.dismiss();
} else {
if (this.inAppBrowser.hardwareBack() &&
this.inAppBrowser.canGoBack()) {
// this.inAppBrowser.goBack();
} else {
// this.inAppBrowser.closeDialog();
}
}
}
}
I do not want it to "goBack" or "closeDialog", I want it to "hide", like you
can call it on the Cordova Javascript side
https://github.com/apache/cordova-plugin-inappbrowser#inappbrowserhide
ref.hide();
Hide is ideal so I can call .show if I want without loading the entire page,
which is what would happen if I just closed it.
I am looking for a Java command such as
this.inAppBrowser.hide();
But I can't seem to find it.
----------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]