Plugin can cause app crash by submitting method channel result multiple times after saveAs action. This behaviour is caused by incorrect handling of activity result in android code.
More specifically the issue is that else block will be called whenever requestCode doesn't match SAVE_FILE. This means that it will be called and submit success also for results from activities started by other plugins in my case share_plus (in some cases the other plugin may handle the result first which prevents the crash).
I will open a PR with a fix for this issue shortly
Plugin can cause app crash by submitting method channel result multiple times after
saveAs
action. This behaviour is caused by incorrect handling of activity result in android code.More specifically the issue is that else block will be called whenever
requestCode
doesn't matchSAVE_FILE
. This means that it will be called and submit success also for results from activities started by other plugins in my caseshare_plus
(in some cases the other plugin may handle the result first which prevents the crash).I will open a PR with a fix for this issue shortly