Browse Source

change headings of conversation dialogs and add hints to TextInputLayout

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
Marcel Hibbe 1 year ago
parent
commit
aec9844fca

+ 1 - 1
app/src/main/java/com/nextcloud/talk/conversation/CreateConversationDialogFragment.kt

@@ -115,7 +115,7 @@ class CreateConversationDialogFragment : DialogFragment() {
         binding = DialogCreateConversationBinding.inflate(LayoutInflater.from(context))
 
         val dialogBuilder = MaterialAlertDialogBuilder(binding.root.context)
-            .setTitle(resources.getString(R.string.nc_call_name))
+            .setTitle(resources.getString(R.string.create_conversation))
             // listener is null for now to avoid closing after button was clicked.
             // listener is set later in onStart
             .setPositiveButton(R.string.nc_common_create, null)

+ 1 - 1
app/src/main/java/com/nextcloud/talk/conversation/RenameConversationDialogFragment.kt

@@ -85,7 +85,7 @@ class RenameConversationDialogFragment : DialogFragment() {
         binding = DialogRenameConversationBinding.inflate(LayoutInflater.from(context))
 
         val dialogBuilder = MaterialAlertDialogBuilder(binding.root.context)
-            .setTitle(resources.getString(R.string.nc_call_name))
+            .setTitle(resources.getString(R.string.nc_rename))
             // listener is null for now to avoid closing after button was clicked.
             // listener is set later in onStart
             .setPositiveButton(R.string.nc_rename_confirm, null)

+ 1 - 0
app/src/main/res/layout/dialog_create_conversation.xml

@@ -34,6 +34,7 @@
         android:layout_height="wrap_content"
         android:layout_marginEnd="@dimen/standard_half_margin"
         android:layout_toStartOf="@id/smileyButton"
+        android:hint="@string/nc_call_name"
         app:errorTextAppearance="@style/ErrorAppearance"
         app:passwordToggleTint="@color/grey_600"
         app:boxStrokeColor="@color/colorPrimary"

+ 1 - 0
app/src/main/res/layout/dialog_rename_conversation.xml

@@ -36,6 +36,7 @@
         android:layout_height="wrap_content"
         android:layout_marginEnd="@dimen/standard_half_margin"
         android:layout_toStartOf="@id/smileyButton"
+        android:hint="@string/nc_call_name"
         app:errorTextAppearance="@style/ErrorAppearance"
         app:passwordToggleTint="@color/grey_600"
         app:boxStrokeColor="@color/colorPrimary"

+ 1 - 0
app/src/main/res/values/strings.xml

@@ -287,6 +287,7 @@ How to translate with transifex:
     <string name="nc_all_ok_operation">OK, all done!</string>
     <string name="nc_ok">OK</string>
     <string name="nc_call_name">Conversation name</string>
+    <string name="create_conversation">Create conversation</string>
     <string name="nc_add_emojis">Add emojis</string>
     <string name="nc_share_text">Join the conversation at %1$s/index.php/call/%2$s</string>
     <string name="nc_share_subject">%1$s invitation</string>