Potentially fix crashes

This commit is contained in:
nielsandriesse 2020-10-02 15:40:55 +10:00
parent 9b40a2c0b8
commit a51850a147
2 changed files with 12 additions and 3 deletions

View File

@ -3102,8 +3102,12 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
}
private void updateProfilePicture() {
try {
profilePictureView.glide = GlideApp.with(this);
profilePictureView.update(recipient, threadId);
} catch (Exception exception) {
// Do nothing
}
}
private void updateSubtitleTextView() {

View File

@ -140,7 +140,12 @@ class SaveAttachmentTask : ProgressDialogAsyncTask<SaveAttachmentTask.Attachment
}
}
val mediaFileUri = resolver.insert(collectionUri, mediaRecord)
var mediaFileUri: Uri?
try {
mediaFileUri = resolver.insert(collectionUri, mediaRecord)
} catch (exception: Exception) {
return null
}
if (mediaFileUri == null) return null
val inputStream = PartAuthority.getAttachmentStream(context, attachment.uri)