浏览代码

set layoutDirection for message input panel to ltr. this will fix that voice messages can be recorded. only set the text input to layoutDirection=locale

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
Marcel Hibbe 3 年之前
父节点
当前提交
f18ace3b80
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4 2
      app/src/main/res/layout/view_message_input.xml

+ 4 - 2
app/src/main/res/layout/view_message_input.xml

@@ -31,7 +31,8 @@
     <RelativeLayout
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
-        android:layout_marginEnd="4dp">
+        android:layout_marginEnd="4dp"
+        android:layoutDirection="ltr">
 
         <include layout="@layout/item_message_quote"
             android:layout_width="match_parent"
@@ -66,7 +67,7 @@
 
         <androidx.emoji.widget.EmojiEditText
             android:id="@id/messageInput"
-            android:layout_width="match_parent"
+            android:layout_width="wrap_content"
             android:layout_height="wrap_content"
             android:layout_below="@+id/quotedChatMessageView"
             android:layout_centerHorizontal="true"
@@ -77,6 +78,7 @@
             android:lineSpacingMultiplier="1.2"
             android:minHeight="48dp"
             android:textAlignment="viewStart"
+            android:layoutDirection="locale"
             tools:hint="@string/nc_hint_enter_a_message" />
 
         <TextView