show taken photos in galery

This commit is contained in:
Christian Schneppe 2020-06-07 09:50:15 +02:00
parent dae582af25
commit 5abb3b91c3

View file

@ -1001,6 +1001,7 @@ public class ConversationFragment extends XmppFragment implements EditMessage.Ke
final Uri takePhotoUri = pendingTakePhotoUri.pop();
if (takePhotoUri != null) {
mediaPreviewAdapter.addMediaPreviews(Attachment.of(getActivity(), takePhotoUri, Attachment.Type.IMAGE));
activity.xmppConnectionService.sendBroadcast(new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE, takePhotoUri));
toggleInputMethod();
} else {
Log.d(Config.LOGTAG, "lost take photo uri. unable to to attach");