Modified strings for "Frequently Contacted" divider.
Bug: 5104277
Change-Id: I5af4d722aaa6e6af993ad0f047cdd46f34ca0624
diff --git a/res/values/strings.xml b/res/values/strings.xml
index b1f9f6f..0b2f4b8 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -598,8 +598,11 @@
<!-- A nicely formatted call duration displayed when viewing call details. For example "42 mins 28 secs" -->
<string name="callDetailsDurationFormat"><xliff:g id="minutes" example="42">%s</xliff:g> mins <xliff:g id="seconds" example="28">%s</xliff:g> secs</string>
- <!-- A list separator for the Favorites tab indicating that items below it are frequently contacted contacts rather than starred contacts -->
- <string name="favoritesFrquentSeparator">Frequently contacted</string>
+ <!-- The text displayed on the divider for the Favorites tab in People app indicating that items below it are frequently contacted [CHAR LIMIT = 39] -->
+ <string name="favoritesFrequentContacted">Frequently contacted</string>
+
+ <!-- The text displayed on the divider for the Favorites tab in Phone app indicating that items below it are frequently called as opposed to starred contacts [CHAR LIMIT = 39] -->
+ <string name="favoritesFrequentCalled">Frequently called</string>
<!-- Dialog title when prompting before creating a contact -->
<string name="add_contact_dlg_title">Add contact</string>
diff --git a/src/com/android/contacts/list/ContactTileAdapter.java b/src/com/android/contacts/list/ContactTileAdapter.java
index 64ace85..910ad2b 100644
--- a/src/com/android/contacts/list/ContactTileAdapter.java
+++ b/src/com/android/contacts/list/ContactTileAdapter.java
@@ -365,8 +365,12 @@
View dividerView = View.inflate(mContext, R.layout.list_separator, null);
dividerView.setFocusable(false);
TextView text = (TextView) dividerView.findViewById(R.id.header_text);
- text.setText(mContext.getString(R.string.favoritesFrquentSeparator));
- return dividerView;
+
+ text.setText(mDisplayType == DisplayType.STREQUENT_PHONE_ONLY ?
+ mContext.getString(R.string.favoritesFrequentCalled) :
+ mContext.getString(R.string.favoritesFrequentContacted));
+
+ return dividerView;
}
private int getLayoutResourceId(int viewType) {