diff options
-rw-r--r-- | res/layout/speed_dial_fragment.xml (renamed from res/layout/speeddial_fragment.xml) | 0 | ||||
-rw-r--r-- | res/values/strings.xml | 15 | ||||
-rw-r--r-- | src/com/android/dialer/list/AllContactsFragment.java | 2 | ||||
-rw-r--r-- | src/com/android/dialer/list/SpeedDialFragment.java | 4 |
4 files changed, 12 insertions, 9 deletions
diff --git a/res/layout/speeddial_fragment.xml b/res/layout/speed_dial_fragment.xml index 58a7b2410..58a7b2410 100644 --- a/res/layout/speeddial_fragment.xml +++ b/res/layout/speed_dial_fragment.xml diff --git a/res/values/strings.xml b/res/values/strings.xml index 6d9c77a86..4cc5af734 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -66,8 +66,8 @@ <!-- Menu item used to share a voicemail. [CHAR LIMIT=30] --> <string name="recentCalls_shareVoicemail">Share voicemail</string> - <!-- Text displayed when the call log is empty --> - <string name="recentCalls_empty">Call log is empty.</string> + <!-- Text displayed when the call log is empty. --> + <string name="recentCalls_empty">Your call log is empty.</string> <!-- Title of the confirmation dialog for clearing the call log. [CHAR LIMIT=37] --> <string name="clearCallLogConfirmation_title">Clear call log?</string> @@ -547,10 +547,10 @@ <string name="view_full_call_history_font_family">sans-serif</string> <!-- Text displayed when the list of missed calls is empty --> - <string name="recentMissed_empty">No recent missed calls.</string> + <string name="recentMissed_empty">You have no recent missed calls.</string> <!-- Text displayed when the list of voicemails is empty --> - <string name="recentVoicemails_empty">No recent voicemails.</string> + <string name="recentVoicemails_empty">You have no recent voicemails.</string> <!-- Menu option to show favorite contacts only --> <string name="show_favorites_only">Show favorites only</string> @@ -599,8 +599,11 @@ <!-- Number of missed calls shown on call card [CHAR LIMIT=40] --> <string name="num_missed_calls"><xliff:g id="number">%s</xliff:g> new missed calls</string> - <!-- Shows when there are no favorites. --> - <string name="no_favorites">Favorites & contacts you\ncall often will show here.\nSo, start calling.</string> + <!-- Shown when there are no speed dial favorites. --> + <string name="speed_dial_empty">Speed dial is one touch dialing\nfor favorites and numbers\n you call frequently.</string> + + <!-- Shown when there are no contacts in the all contacts list. --> + <string name="all_contacts_empty">You have no contacts.</string> <!-- Shows up as a tooltip to provide a hint to the user that the profile pic in a contact card can be tapped to bring up a list of all numbers, or long pressed to start reordering diff --git a/src/com/android/dialer/list/AllContactsFragment.java b/src/com/android/dialer/list/AllContactsFragment.java index ddcb15df4..e4314db60 100644 --- a/src/com/android/dialer/list/AllContactsFragment.java +++ b/src/com/android/dialer/list/AllContactsFragment.java @@ -52,7 +52,7 @@ public class AllContactsFragment extends ContactEntryListFragment<ContactEntryLi View emptyListView = view.findViewById(R.id.empty_list_view); DialerUtils.configureEmptyListView(emptyListView, R.drawable.empty_contacts, - R.string.listFoundAllContactsZero, getResources()); + R.string.all_contacts_empty, getResources()); getListView().setEmptyView(emptyListView); ViewUtil.addBottomPaddingToListViewForFab(getListView(), getResources()); diff --git a/src/com/android/dialer/list/SpeedDialFragment.java b/src/com/android/dialer/list/SpeedDialFragment.java index c21449288..a04d4ccef 100644 --- a/src/com/android/dialer/list/SpeedDialFragment.java +++ b/src/com/android/dialer/list/SpeedDialFragment.java @@ -197,7 +197,7 @@ public class SpeedDialFragment extends Fragment implements OnItemClickListener, @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { - mParentView = inflater.inflate(R.layout.speeddial_fragment, container, false); + mParentView = inflater.inflate(R.layout.speed_dial_fragment, container, false); mListView = (PhoneFavoriteListView) mParentView.findViewById(R.id.contact_tile_list); mListView.setOnItemClickListener(this); @@ -213,7 +213,7 @@ public class SpeedDialFragment extends Fragment implements OnItemClickListener, final Resources resources = getResources(); mEmptyView = mParentView.findViewById(R.id.empty_list_view); DialerUtils.configureEmptyListView( - mEmptyView, R.drawable.empty_speed_dial, R.string.no_favorites, getResources()); + mEmptyView, R.drawable.empty_speed_dial, R.string.speed_dial_empty, getResources()); mContactTileFrame = mParentView.findViewById(R.id.contact_tile_frame); |