mirror of
https://github.com/nix-community/nix-on-droid-app.git
synced 2025-12-12 12:01:15 +01:00
Fix potential TransactionTooLargeException when sharing text
This commit is contained in:
parent
939338aaac
commit
81d97c3584
1 changed files with 1 additions and 1 deletions
|
|
@ -41,7 +41,7 @@ public class ShareUtils {
|
|||
final Intent shareTextIntent = new Intent(Intent.ACTION_SEND);
|
||||
shareTextIntent.setType("text/plain");
|
||||
shareTextIntent.putExtra(Intent.EXTRA_SUBJECT, subject);
|
||||
shareTextIntent.putExtra(Intent.EXTRA_TEXT, text);
|
||||
shareTextIntent.putExtra(Intent.EXTRA_TEXT, DataUtils.getTruncatedCommandOutput(text, DataUtils.TRANSACTION_SIZE_LIMIT_IN_BYTES, false, false, false));
|
||||
|
||||
openSystemAppChooser(context, shareTextIntent, context.getString(R.string.title_share_with));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue