You've already forked joplin
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user