Fix icon size for poi info in context menu

This commit is contained in:
Alexey Kulish 2015-12-06 10:51:24 +03:00
parent 2cecb25dac
commit 003b062b0c

View file

@ -3,9 +3,7 @@ package net.osmand.plus.mapcontextmenu;
import android.app.Activity;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.PorterDuff;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import android.text.ClipboardManager;
import android.text.util.Linkify;
@ -263,9 +261,8 @@ public class MenuBuilder {
}
public Drawable getRowIcon(Context ctx, String fileName) {
Bitmap iconBitmap = RenderingIcons.getIcon(ctx, fileName, false);
if (iconBitmap != null) {
BitmapDrawable d = new BitmapDrawable(ctx.getResources(), iconBitmap);
Drawable d = RenderingIcons.getBigIcon(ctx, fileName);
if (d != null) {
boolean light = app.getSettings().isLightContent();
d.setColorFilter(app.getResources()
.getColor(light ? R.color.icon_color : R.color.icon_color_light), PorterDuff.Mode.SRC_IN);