From 16ca03cb5c7b846d93e0312b11cec8200a2e89f2 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 12 May 2021 18:16:59 +0200 Subject: [PATCH] Adjust title depending on the view Signed-off-by: Joas Schilling --- .../nextcloud/talk/controllers/ContactsController.java | 8 +++++--- app/src/main/res/values/strings.xml | 3 ++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/com/nextcloud/talk/controllers/ContactsController.java b/app/src/main/java/com/nextcloud/talk/controllers/ContactsController.java index 61314a2a7..e76028942 100644 --- a/app/src/main/java/com/nextcloud/talk/controllers/ContactsController.java +++ b/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); } } diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 3a9f41b17..01cab76c9 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -190,7 +190,8 @@ Remove from favorites - Select contacts + Select participants + Add participants Done