You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/share_plus/share_plus/android/src/main/kotlin/dev/fluttercommunity/plus/share/MethodCallHandler.kt
Copy file name to clipboardExpand all lines: packages/share_plus/share_plus/android/src/main/kotlin/dev/fluttercommunity/plus/share/ShareSuccessManager.kt
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -41,6 +41,14 @@ internal class ShareSuccessManager(private val context: Context) : ActivityResul
41
41
returnResult(RESULT_UNAVAILABLE)
42
42
}
43
43
44
+
/**
45
+
* Must be called on error to avoid deadlocking.
46
+
*/
47
+
funclear() {
48
+
isCalledBack.set(true)
49
+
callback =null
50
+
}
51
+
44
52
/**
45
53
* Send the result to flutter by invoking the previously set callback.
0 commit comments