Update gallery list search bar hint

This commit is contained in:
seven332 committed 2016-03-25 14:40:29 +08:00
1 parent e608d8e142
commit c8030c6454
5 files changed
+12 -6

No files matched your search

@@ -62,6 +62,7 @@ import com.hippo.ehviewer.R;
import com.hippo.ehviewer.Settings;
import com.hippo.ehviewer.client.EhClient;
import com.hippo.ehviewer.client.EhRequest;
import com.hippo.ehviewer.client.EhUrl;
import com.hippo.ehviewer.client.EhUtils;
import com.hippo.ehviewer.client.data.GalleryInfo;
import com.hippo.ehviewer.client.data.ListUrlBuilder;
@@ -263,8 +264,9 @@ public final class GalleryListScene extends BaseScene
Resources resources = context.getResources();
Drawable searchImage = DrawableManager.getDrawable(context, R.drawable.v_magnify_x24);
SpannableStringBuilder ssb = new SpannableStringBuilder(" ");
// TODO hint for e-hentai
ssb.append(resources.getString(R.string.gallery_list_search_bar_hint));
ssb.append(resources.getString(EhUrl.SITE_EX == Settings.getGallerySite() ?
R.string.gallery_list_search_bar_hint_exhentai :
R.string.gallery_list_search_bar_hint_e_hentai));
int textSize = (int) (searchBar.getEditTextTextSize() * 1.25);
if (searchImage != null) {
searchImage.setBounds(0, 0, textSize, textSize);