diff --git a/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java b/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java index e76386761..99ad89e56 100644 --- a/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java +++ b/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java @@ -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"); }); } } diff --git a/src/main/res/layout-land/fragment_conversation.xml b/src/main/res/layout-land/fragment_conversation.xml index a27066d71..7bed20791 100644 --- a/src/main/res/layout-land/fragment_conversation.xml +++ b/src/main/res/layout-land/fragment_conversation.xml @@ -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" /> diff --git a/src/main/res/layout/fragment_conversation.xml b/src/main/res/layout/fragment_conversation.xml index 408972bde..a9ea1fe79 100644 --- a/src/main/res/layout/fragment_conversation.xml +++ b/src/main/res/layout/fragment_conversation.xml @@ -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" />