summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Lee <anwlee@google.com>2014-06-12 01:17:01 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-06-11 21:23:31 +0000
commit4e11a9cc41fcf2f25e3e7849ab8afa032b93f5d0 (patch)
treeaa5c00a2152712464a8f3d5e02fdd216c68ade07
parenteb43f8e59f34e9ea7ad4992cae34ff7551f9c56d (diff)
parent39f773e8a64ec1b770b2679871b7c44cac7243d2 (diff)
Merge "Update strings for empty lists in Dialer."
-rw-r--r--res/layout/speed_dial_fragment.xml (renamed from res/layout/speeddial_fragment.xml)0
-rw-r--r--res/values/strings.xml15
-rw-r--r--src/com/android/dialer/list/AllContactsFragment.java2
-rw-r--r--src/com/android/dialer/list/SpeedDialFragment.java4
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 6528605d2..481611463 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>
@@ -595,8 +595,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 &amp; 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);