mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 907850 - Add a little space around the reader icon in awesomescreen tip. r=sriram
This commit is contained in:
parent
b7d41e5a45
commit
843a1f9022
@ -165,7 +165,13 @@ public class ReadingListPage extends HomeFragment {
|
||||
if (imageSpanIndex != -1) {
|
||||
final ImageSpan readingListIcon = new ImageSpan(getActivity(), R.drawable.reader_cropped, ImageSpan.ALIGN_BOTTOM);
|
||||
final SpannableStringBuilder hintBuilder = new SpannableStringBuilder(readingListHint);
|
||||
hintBuilder.setSpan(readingListIcon, imageSpanIndex, imageSpanIndex + 2, Spanned.SPAN_INCLUSIVE_INCLUSIVE);
|
||||
|
||||
// Add additional spacing.
|
||||
hintBuilder.insert(imageSpanIndex + 2, " ");
|
||||
hintBuilder.insert(imageSpanIndex, " ");
|
||||
|
||||
// Add icon.
|
||||
hintBuilder.setSpan(readingListIcon, imageSpanIndex + 1, imageSpanIndex + 3, Spanned.SPAN_INCLUSIVE_INCLUSIVE);
|
||||
|
||||
emptyHint.setText(hintBuilder, TextView.BufferType.SPANNABLE);
|
||||
}
|
||||
|
@ -281,7 +281,7 @@ size. -->
|
||||
<!-- Localization note (home_reading_list_hint): The "TIP" string is synonymous to "hint", "clue", etc. This string is displayed
|
||||
as an advisory message on how to add content to the reading list when the reading list empty.
|
||||
The "%I" in the string will be replaced by a small image of the icon described, and can be moved to wherever
|
||||
it is applicable.. -->
|
||||
it is applicable. Please keep the spacing around the "%I" string. -->
|
||||
<!ENTITY home_reading_list_hint "TIP: Save articles to your reading list by long pressing the %I icon when it appears in the title bar.">
|
||||
|
||||
<!ENTITY home_most_visited_empty "Websites you visit most frequently show up here.">
|
||||
|
Loading…
Reference in New Issue
Block a user