This commit is contained in:
ろむねこ 2024-01-25 16:42:42 +09:00
parent 7eb87305ea
commit 4319e1d1ec
No known key found for this signature in database
GPG Key ID: FA1F39A1BA37D168

View File

@ -1,5 +1,6 @@
package one.nem.lacerta.setting; package one.nem.lacerta.setting;
import android.graphics.Color;
import android.media.Image; import android.media.Image;
import android.view.LayoutInflater; import android.view.LayoutInflater;
import android.view.View; import android.view.View;
@ -41,7 +42,7 @@ public class TagListItemAdapter extends RecyclerView.Adapter<TagListItemAdapter.
holder.tag_name.setText(documentTag.getName()); holder.tag_name.setText(documentTag.getName());
try { try {
holder.tag_icon.setImageResource(one.nem.lacerta.shared.ui.R.drawable.class.getField(documentTag.getIcon()).getInt(null)); holder.tag_icon.setColorFilter(Color.parseColor(documentTag.getColor()));
} catch (Exception e) { } catch (Exception e) {
holder.tag_name.setText("Sorry, Parse Error occurred"); holder.tag_name.setText("Sorry, Parse Error occurred");
} }