diff --git a/flutter_custom_tabs/CHANGELOG.md b/flutter_custom_tabs/CHANGELOG.md index 7d822ac..7cff3b4 100644 --- a/flutter_custom_tabs/CHANGELOG.md +++ b/flutter_custom_tabs/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.1.1 + +- Fixed a bug that handled results multiple times when opening a URL on Android. + ## 1.1.0 - Added a manual close feature for SFSafariViewController on iOS([#67](https://github.com/droibit/flutter_custom_tabs/pull/67)). diff --git a/flutter_custom_tabs/README.md b/flutter_custom_tabs/README.md index 3912aaf..195897a 100644 --- a/flutter_custom_tabs/README.md +++ b/flutter_custom_tabs/README.md @@ -30,7 +30,7 @@ Add `flutter_custom_tabs` to the dependencies of your `pubspec.yaml`. ``` yaml dependencies: - flutter_custom_tabs: ^1.1.0 + flutter_custom_tabs: ^1.1.1 ``` ### Requirements diff --git a/flutter_custom_tabs/android/src/main/java/com/github/droibit/flutter/plugins/customtabs/CustomTabsPlugin.java b/flutter_custom_tabs/android/src/main/java/com/github/droibit/flutter/plugins/customtabs/CustomTabsPlugin.java index c2141e6..77085c1 100644 --- a/flutter_custom_tabs/android/src/main/java/com/github/droibit/flutter/plugins/customtabs/CustomTabsPlugin.java +++ b/flutter_custom_tabs/android/src/main/java/com/github/droibit/flutter/plugins/customtabs/CustomTabsPlugin.java @@ -73,9 +73,9 @@ public void onDetachedFromActivity() { public void onMethodCall(@NonNull MethodCall call, @NonNull final MethodChannel.Result result) { if ("launch".equals(call.method)) { launch(((Map) call.arguments), result); - } if ("closeAllIfPossible".equals(call.method)) { + } else if ("closeAllIfPossible".equals(call.method)) { closeAllIfPossible(result); - }else { + } else { result.notImplemented(); } } diff --git a/flutter_custom_tabs/pubspec.yaml b/flutter_custom_tabs/pubspec.yaml index 6d6f7cd..fe437d1 100644 --- a/flutter_custom_tabs/pubspec.yaml +++ b/flutter_custom_tabs/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_custom_tabs description: Flutter plugin for seamlessly displaying web content using Chrome Custom Tabs. -version: 1.1.0 +version: 1.1.1 homepage: https://github.com/droibit/flutter_custom_tabs environment: