Skip to content

Commit

Permalink
Hide attachment keyboard after selecting an action.
Browse files Browse the repository at this point in the history
  • Loading branch information
greyson-signal committed Feb 4, 2020
1 parent 6465248 commit 82446ce
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -850,6 +850,7 @@ public void onRequestPermissionsResult(int requestCode, @NonNull String[] permis
public void onAttachmentMediaClicked(@NonNull Media media) {
linkPreviewViewModel.onUserCancel();
startActivityForResult(MediaSendActivity.buildEditorIntent(ConversationActivity.this, Collections.singletonList(media), recipient.get(), composeText.getTextTrimmed(), sendButton.getSelectedTransport()), MEDIA_SENDER);
container.hideCurrentInput(composeText);
}

@Override
Expand All @@ -871,8 +872,8 @@ public void onAttachmentSelectorClicked(@NonNull AttachmentKeyboardButton button
AttachmentManager.selectLocation(this, PICK_LOCATION);
break;
}
// TODO [greyson] [attachment] Add these
// attachmentManager.capturePhoto(this, TAKE_PHOTO); break;

container.hideCurrentInput(composeText);
}

@Override
Expand Down

0 comments on commit 82446ce

Please sign in to comment.