Browse Source

Adjust title depending on the view

Signed-off-by: Joas Schilling <coding@schilljs.com>
Joas Schilling 4 years ago
parent
commit
16ca03cb5c

+ 5 - 3
app/src/main/java/com/nextcloud/talk/controllers/ContactsController.java

@@ -812,10 +812,12 @@ public class ContactsController extends BaseController implements SearchView.OnQ
 
     @Override
     protected String getTitle() {
-        if (!isNewConversationView && !isAddingParticipantsView) {
-            return getResources().getString(R.string.nc_app_name);
+        if (isAddingParticipantsView) {
+            return getResources().getString(R.string.nc_add_participants);
+        } else if (isNewConversationView) {
+            return getResources().getString(R.string.nc_select_participants);
         } else {
-            return getResources().getString(R.string.nc_select_contacts);
+            return getResources().getString(R.string.nc_app_name);
         }
     }
 

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

@@ -190,7 +190,8 @@
     <string name="nc_remove_from_favorites">Remove from favorites</string>
 
     <!-- Contacts -->
-    <string name="nc_select_contacts">Select contacts</string>
+    <string name="nc_select_participants">Select participants</string>
+    <string name="nc_add_participants">Add participants</string>
     <string name="nc_contacts_done">Done</string>
 
     <!-- Permissions -->