forked from mirror/monocles_chat_clean
show taken photos in galery
This commit is contained in:
parent
dae582af25
commit
5abb3b91c3
1 changed files with 1 additions and 0 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Reference in a new issue