mirror of https://github.com/M66B/FairEmail.git
Set un/junk button title
This commit is contained in:
parent
bd16be7f1f
commit
4a54728867
|
@ -3108,6 +3108,10 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
if (normal) {
|
||||
ibTrash.setTag(delete);
|
||||
ibJunk.setImageResource(unjunk ? R.drawable.baseline_inbox_24 : R.drawable.baseline_flag_24);
|
||||
String title = context.getString(unjunk ? R.string.title_no_junk : R.string.title_spam);
|
||||
ibJunk.setContentDescription(title);
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O)
|
||||
ibJunk.setTooltipText(title);
|
||||
|
||||
ibArchive.setVisibility(archive ? View.VISIBLE : View.GONE);
|
||||
ibTrash.setVisibility(trash ? View.VISIBLE : View.GONE);
|
||||
|
|
Loading…
Reference in New Issue