Fix sharing log from a non-activity context

This commit is contained in:
Chumva 2019-05-30 16:06:45 +03:00
parent c07b56586e
commit 874bb9f08d

View file

@ -981,6 +981,8 @@ public class OsmandApplication extends MultiDexApplication {
PlatformUtil.getLog(ErrorBottomSheetDialog.class).error("", e);
}
intent.putExtra(Intent.EXTRA_TEXT, text.toString());
startActivity(Intent.createChooser(intent, getString(R.string.send_report)));
Intent chooserIntent = Intent.createChooser(intent, getString(R.string.send_report));
chooserIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(chooserIntent);
}
}