Update <Share> dialog on Android 10

This commit is contained in:
Florin9doi committed 2020-04-25 13:19:41 +03:00
1 parent b5a0af635f
commit 4640d3981c
3 files changed
+4 -2

No files matched your search

@@ -1307,7 +1307,8 @@ public abstract class NativeActivity extends Activity implements SurfaceHolder.C
sendIntent.setType("text/plain");
sendIntent.putExtra(Intent.EXTRA_TEXT, params);
sendIntent.setAction(Intent.ACTION_SEND);
startActivity(sendIntent);
Intent shareIntent = Intent.createChooser(sendIntent, null);
startActivity(shareIntent);
return true;
} catch (Exception e) { // For example, android.content.ActivityNotFoundException
Log.e(TAG, e.toString());