mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-25 01:07:47 +00:00
Stop crash on multiple attachment selected
Fixed #5272 Closes #5440 // FREEBIE
This commit is contained in:
parent
209d8148ab
commit
31970c4644
@ -1059,6 +1059,7 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
|
||||
}
|
||||
|
||||
private void setMedia(Uri uri, MediaType mediaType) {
|
||||
if (uri == null) return;
|
||||
attachmentManager.setMedia(masterSecret, uri, mediaType, getCurrentMediaConstraints());
|
||||
}
|
||||
|
||||
|
@ -72,6 +72,8 @@ public class MediaUtil {
|
||||
}
|
||||
|
||||
public static @Nullable String getMimeType(Context context, Uri uri) {
|
||||
if (uri == null) return null;
|
||||
|
||||
if (PersistentBlobProvider.isAuthority(context, uri)) {
|
||||
return PersistentBlobProvider.getMimeType(context, uri);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user