mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
Sharing from special app crashed #996
This commit is contained in:
@@ -213,7 +213,10 @@ public class ShareActivity extends PassphraseRequiredActionBarActivity implement
|
||||
|
||||
private Intent getBaseShareIntent(final @NonNull Class<?> target) {
|
||||
final Intent intent = new Intent(this, target);
|
||||
setSharedText(intent, getIntent().getStringExtra(Intent.EXTRA_TEXT));
|
||||
CharSequence text = getIntent().getCharSequenceExtra(Intent.EXTRA_TEXT);
|
||||
if (text != null) {
|
||||
setSharedText(intent, text.toString());
|
||||
}
|
||||
if (resolvedExtras.size() > 0) {
|
||||
Uri data = resolvedExtras.get(0);
|
||||
if (data != null) {
|
||||
|
||||
Reference in New Issue
Block a user