mirror of
https://codeberg.org/monocles/monocles_chat.git
synced 2025-01-16 14:42:21 +01:00
directly send voice message instead of just attach
This commit is contained in:
parent
b97e591bfb
commit
8ac233ecc7
3 changed files with 5 additions and 5 deletions
|
@ -3218,10 +3218,10 @@ public class ConversationFragment extends XmppFragment
|
|||
() -> {
|
||||
activity.setResult(
|
||||
Activity.RESULT_OK, new Intent().setData(Uri.fromFile(outputFile)));
|
||||
mediaPreviewAdapter.addMediaPreviews(Attachment.of(getActivity(), Uri.fromFile(outputFile), Attachment.Type.RECORDING));
|
||||
toggleInputMethod();
|
||||
//mediaPreviewAdapter.addMediaPreviews(Attachment.of(getActivity(), Uri.fromFile(outputFile), Attachment.Type.RECORDING));
|
||||
//toggleInputMethod();
|
||||
attachFileToConversation(conversation, Uri.fromFile(outputFile), "audio/mp4");
|
||||
binding.recordingVoiceActivity.setVisibility(View.GONE);
|
||||
//attachFileToConversation(conversation, Uri.fromFile(outputFile), "audio/mp4");
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -152,7 +152,7 @@
|
|||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/attach"
|
||||
android:text="@string/send_now"
|
||||
android:textColor="?attr/colorAccent" />
|
||||
</LinearLayout>
|
||||
|
||||
|
|
|
@ -153,7 +153,7 @@
|
|||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/attach"
|
||||
android:text="@string/send_now"
|
||||
android:textColor="?attr/colorAccent" />
|
||||
</LinearLayout>
|
||||
|
||||
|
|
Loading…
Reference in a new issue