Only show flagged message counters when star preference is selected

This commit is contained in:
Daniel Applebaum 2010-04-17 04:33:25 +00:00
parent 5bd24fe425
commit f27aa4c5c0
2 changed files with 2 additions and 2 deletions

View file

@ -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
{ {

View file

@ -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));