mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-22 07:53:15 +00:00
fix
This commit is contained in:
parent
7eb87305ea
commit
4319e1d1ec
|
@ -1,5 +1,6 @@
|
|||
package one.nem.lacerta.setting;
|
||||
|
||||
import android.graphics.Color;
|
||||
import android.media.Image;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
|
@ -41,7 +42,7 @@ public class TagListItemAdapter extends RecyclerView.Adapter<TagListItemAdapter.
|
|||
|
||||
holder.tag_name.setText(documentTag.getName());
|
||||
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) {
|
||||
holder.tag_name.setText("Sorry, Parse Error occurred");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user