1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-29 22:48:10 +02:00

Android: Fixes #7791: Fixed issue where app would close after sharing a file

This commit is contained in:
Laurent Cozic
2023-02-20 16:05:00 +00:00
parent f2995dd196
commit 25a31b0689
5 changed files with 53 additions and 28 deletions

View File

@@ -78,10 +78,13 @@ public class SharePackage implements ReactPackage {
@ReactMethod
public void close() {
Activity currentActivity = getCurrentActivity();
if (currentActivity != null) {
currentActivity.finish();
}
// We disable this, because otherwise it would close the whole application
// https://github.com/laurent22/joplin/issues/7791#issuecomment-1436078948
// Activity currentActivity = getCurrentActivity();
// if (currentActivity != null) {
// currentActivity.finish();
// }
}
@ReactMethod