Skip to content

Commit

Permalink
Back button will once again close inAppBrowser if pressed enough times
Browse files Browse the repository at this point in the history
  • Loading branch information
andycorm committed Nov 22, 2014
1 parent 169337b commit 2312e38
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
id="com.andycorman.cordova.inappbrowser"
version="1.1"><!-- Based off inAppBrowser version 0.5.3 -->
version="1.2"><!-- Based off inAppBrowser version 0.5.3 -->

<name>InAppBrowser</name>
<description>Cordova InAppBrowser Plugin with Android "Back" button fix - Based off inAppBrowser version 0.5.3</description>
Expand Down
2 changes: 1 addition & 1 deletion src/android/InAppBrowserDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public void onBackPressed () {
} else { // Added to fix back button
// better to go through the in inAppBrowser
// because it does a clean up
// this.inAppBrowser.closeDialog(); // Commented out to fix back button
this.inAppBrowser.closeDialog();
} // Added to fix back button
}
}
Expand Down

0 comments on commit 2312e38

Please sign in to comment.