1
0
Fork 0
mirror of https://github.com/gsantner/dandelion synced 2024-11-25 13:52:08 +01:00

Fixed crash after clicking photo upload button twice (#139)

This commit is contained in:
vanitasvitae 2017-01-24 13:04:26 +01:00
parent 8ef2cacc79
commit 392b76c53d
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -265,8 +265,6 @@ public class DiasporaStreamFragment extends BrowserFragment {
} }
} }
AppLog.v(this, "onOpenFileChooser"); AppLog.v(this, "onOpenFileChooser");
if (imageUploadFilePathCallbackNew != null)
imageUploadFilePathCallbackNew.onReceiveValue(null);
imageUploadFilePathCallbackNew = filePathCallback; imageUploadFilePathCallbackNew = filePathCallback;
Intent takePictureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); Intent takePictureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
if (takePictureIntent.resolveActivity(getContext().getPackageManager()) != null) { if (takePictureIntent.resolveActivity(getContext().getPackageManager()) != null) {