change headings of conversation dialogs and add hints to TextInputLayout

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
Marcel Hibbe 2023-10-10 17:47:50 +02:00
parent 32dbe70399
commit aec9844fca
No known key found for this signature in database
GPG Key ID: C793F8B59F43CE7B
5 changed files with 5 additions and 2 deletions

View File

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

View File

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

View File

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

View File

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

View File

@ -287,6 +287,7 @@ How to translate with transifex:
<string name="nc_all_ok_operation">OK, all done!</string> <string name="nc_all_ok_operation">OK, all done!</string>
<string name="nc_ok">OK</string> <string name="nc_ok">OK</string>
<string name="nc_call_name">Conversation name</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_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_text">Join the conversation at %1$s/index.php/call/%2$s</string>
<string name="nc_share_subject">%1$s invitation</string> <string name="nc_share_subject">%1$s invitation</string>