mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-15 22:15:15 -05:00
Only show flagged message counters when star preference is selected
This commit is contained in:
parent
5bd24fe425
commit
f27aa4c5c0
@ -809,7 +809,7 @@ public class Accounts extends K9ListActivity implements OnItemClickListener, OnC
|
|||||||
holder.newMessageCount.setVisibility(unreadMessageCount > 0 ? View.VISIBLE : View.GONE);
|
holder.newMessageCount.setVisibility(unreadMessageCount > 0 ? View.VISIBLE : View.GONE);
|
||||||
|
|
||||||
holder.flaggedMessageCount.setText(Integer.toString(stats.flaggedMessageCount));
|
holder.flaggedMessageCount.setText(Integer.toString(stats.flaggedMessageCount));
|
||||||
holder.flaggedMessageCount.setVisibility(stats.flaggedMessageCount > 0 ? View.VISIBLE : View.GONE);
|
holder.flaggedMessageCount.setVisibility(K9.messageListStars() && stats.flaggedMessageCount > 0 ? View.VISIBLE : View.GONE);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -1244,7 +1244,7 @@ public class FolderList extends K9ListActivity
|
|||||||
holder.newMessageCount.setVisibility(View.GONE);
|
holder.newMessageCount.setVisibility(View.GONE);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (folder.flaggedMessageCount > 0)
|
if (K9.messageListStars() && folder.flaggedMessageCount > 0)
|
||||||
{
|
{
|
||||||
holder.flaggedMessageCount.setText(Integer
|
holder.flaggedMessageCount.setText(Integer
|
||||||
.toString(folder.flaggedMessageCount));
|
.toString(folder.flaggedMessageCount));
|
||||||
|
Loading…
Reference in New Issue
Block a user