Bug 1205236 - History Panel: A more appropriate empty state title. r=sebastian

--HG--
extra : transplant_source : %1C%ECS%AF%DC%C9%3A%02q%D2%AE%D4Y%ED%D5%BA%BF%86%87%F4
This commit is contained in:
Alex Johnson 2016-01-05 14:54:26 -05:00
Родитель d09fc47e9a
Коммит 99c389636a
3 изменённых файлов: 7 добавлений и 1 удалений

Просмотреть файл

@ -310,7 +310,11 @@ public class HistoryPanel extends HomeFragment {
emptyIcon.setImageResource(R.drawable.icon_most_recent_empty);
final TextView emptyText = (TextView) mEmptyView.findViewById(R.id.home_empty_text);
emptyText.setText(R.string.home_most_recent_empty);
if (selected == null || mRangeAdapter == null || mRangeList == null) {
emptyText.setText(R.string.home_most_recent_empty);
} else {
emptyText.setText(R.string.home_selected_empty);
}
final TextView emptyHint = (TextView) mEmptyView.findViewById(R.id.home_empty_hint);
final String hintText = getResources().getString(R.string.home_most_recent_emptyhint);

Просмотреть файл

@ -532,6 +532,7 @@ size. -->
<!ENTITY home_last_tabs_empty "Your recent tabs show up here.">
<!ENTITY home_open_all "Open all">
<!ENTITY home_most_recent_empty "Websites you visited most recently show up here.">
<!ENTITY home_selected_empty "Websites you visited in the selected timeframe show up here.">
<!-- Localization note (home_most_recent_emptyhint2): "Psst" is a sound that might be used to attract someone's attention unobtrusively, and intended to hint at Private Browsing to the user.
The placeholders &formatS1; and &formatS2; are used to mark the location of text underlining. -->
<!ENTITY home_most_recent_emptyhint2 "Psst: using a &formatS1;New Private Tab&formatS2; won\'t save your history.">

Просмотреть файл

@ -438,6 +438,7 @@
<string name="home_last_tabs_empty">&home_last_tabs_empty;</string>
<string name="home_open_all">&home_open_all;</string>
<string name="home_most_recent_empty">&home_most_recent_empty;</string>
<string name="home_selected_empty">&home_selected_empty;</string>
<string name="home_most_recent_emptyhint">&home_most_recent_emptyhint2;</string>
<string name="home_reading_list_empty">&home_reading_list_empty;</string>
<string name="home_reading_list_hint">&home_reading_list_hint3;</string>