Adjust title depending on the view

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2021-05-12 18:16:59 +02:00
parent 8f7873ab9b
commit 16ca03cb5c
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA
2 changed files with 7 additions and 4 deletions

View File

@ -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);
}
}

View File

@ -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 -->