mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-06 04:45:50 +01:00
Set un/junk button title
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user