Skip to content

Commit

Permalink
Change return type to bool for shareOption
Browse files Browse the repository at this point in the history
Fixes ShekarMudaliyar#117

The Dart code is expecting a return type of bool and the Android
code is returning a type String.  I'm assuming "success" should
be translated to True.

I looked at the iOS code and it is returning a boolean type for
the same function.

Signed-off-by: Gary O'Neall <[email protected]>
  • Loading branch information
goneall committed Mar 20, 2023
1 parent 073e174 commit aafd1c0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ class SocialSharePlugin:FlutterPlugin, MethodCallHandler, ActivityAware {
chooserIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)

activeContext!!.startActivity(chooserIntent)
result.success("success")
result.success(true)

} else if (call.method == "copyToClipboard") {

Expand Down

0 comments on commit aafd1c0

Please sign in to comment.