Fix poi type icon color. Fix tr translation

This commit is contained in:
Alexey Kulish 2015-12-04 11:32:04 +03:00
parent c3718c2e57
commit a9558bcec3
3 changed files with 10 additions and 6 deletions

View file

@ -4,6 +4,7 @@ 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;
@ -264,7 +265,11 @@ public class MenuBuilder {
public Drawable getRowIcon(Context ctx, String fileName) {
Bitmap iconBitmap = RenderingIcons.getIcon(ctx, fileName, false);
if (iconBitmap != null) {
return new BitmapDrawable(ctx.getResources(), iconBitmap);
BitmapDrawable d = new BitmapDrawable(ctx.getResources(), iconBitmap);
boolean light = app.getSettings().isLightContent();
d.setColorFilter(app.getResources()
.getColor(light ? R.color.icon_color : R.color.icon_color_light), PorterDuff.Mode.SRC_IN);
return d;
} else {
return null;
}

View file

@ -4,7 +4,6 @@ import android.graphics.drawable.Drawable;
import android.text.Html;
import android.text.TextUtils;
import android.text.util.Linkify;
import android.util.Log;
import android.view.Gravity;
import android.view.View;
import android.view.ViewGroup;