Add a hardwareback option to allow for the hardware back button to go back.

This commit is contained in:
Kris Erickson
2014-03-09 11:33:24 -07:00
parent a5dedae631
commit 392a73c2cd
2 changed files with 28 additions and 2 deletions
+5 -1
View File
@@ -48,7 +48,11 @@ public class InAppBrowserDialog extends Dialog {
} else {
// better to go through the in inAppBrowser
// because it does a clean up
this.inAppBrowser.closeDialog();
if (this.inAppBrowser.hardwareBack() && this.inAppBrowser.canGoBack()) {
this.inAppBrowser.goBack();
} else {
this.inAppBrowser.closeDialog();
}
}
}
}