Change the title of GroupMembersActivity when removing contacts
Bug 30266214
Change-Id: Iabdf52cc324aaa4124e453ae2d4b782d49e89b4e
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 7938844..ec9b4a9 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -677,8 +677,8 @@
<!-- Label to instruct the user to type in a contact's name to add the contact as a member of the current group. [CHAR LIMIT=64] -->
<string name="enter_contact_name">Search contacts</string>
- <!-- Title of edit label view [CHAR LIMIT=20]-->
- <string name="title_edit_group">Edit Label: <xliff:g id="group_name" example="Friends">%1$s</xliff:g></string>
+ <!-- Title of the edit label view in selection mode when contacts are being selected for removal.[CHAR LIMIT=40] -->
+ <string name="title_edit_group">Remove contacts</string>
<!-- Header label in the contact editor for a profile that is local to the device only (and not associated with any account) [CHAR LIMIT=25] -->
<string name="local_profile_title">My local profile</string>
diff --git a/src/com/android/contacts/activities/GroupMembersActivity.java b/src/com/android/contacts/activities/GroupMembersActivity.java
index 38fcb19..f8a83f6 100644
--- a/src/com/android/contacts/activities/GroupMembersActivity.java
+++ b/src/com/android/contacts/activities/GroupMembersActivity.java
@@ -495,8 +495,7 @@
if (mMembersFragment != null) {
if (mIsEditMode) {
mMembersFragment.displayDeleteButtons(true);
- mActionBarAdapter.setActionBarTitle(
- getString(R.string.title_edit_group, mGroupMetadata.groupName));
+ mActionBarAdapter.setActionBarTitle(getString(R.string.title_edit_group));
} else {
mMembersFragment.displayCheckBoxes(true);
}
@@ -545,8 +544,7 @@
@Override
public void onSelectedContactIdsChanged() {
if (mIsEditMode) {
- mActionBarAdapter.setActionBarTitle(
- getString(R.string.title_edit_group, mGroupMetadata.groupName));
+ mActionBarAdapter.setActionBarTitle(getString(R.string.title_edit_group));
} else {
mActionBarAdapter.setSelectionCount(mMembersFragment.getSelectedContactIds().size());
}