mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
Merge pull request #1003 from deltachat/issue-996
Sharing from special app crashed #996
This commit is contained in:
@@ -213,7 +213,17 @@ 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));
|
||||
String text = getIntent().getStringExtra(Intent.EXTRA_TEXT);
|
||||
if (text==null) {
|
||||
CharSequence cs = getIntent().getCharSequenceExtra(Intent.EXTRA_TEXT);
|
||||
if (cs!=null) {
|
||||
text = cs.toString();
|
||||
}
|
||||
}
|
||||
|
||||
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