Fix icon size for poi info in context menu
This commit is contained in:
parent
2cecb25dac
commit
003b062b0c
1 changed files with 2 additions and 5 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue