|
|
|
@ -59,6 +59,7 @@ public class AdapterNavAccountFolder extends RecyclerView.Adapter<AdapterNavAcco
|
|
|
|
|
|
|
|
|
|
private boolean nav_count;
|
|
|
|
|
private boolean nav_count_pinned;
|
|
|
|
|
private boolean nav_unseen_drafts;
|
|
|
|
|
private boolean nav_categories;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -138,7 +139,7 @@ public class AdapterNavAccountFolder extends RecyclerView.Adapter<AdapterNavAcco
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int count;
|
|
|
|
|
if (EntityFolder.DRAFTS.equals(account.folderType))
|
|
|
|
|
if ((!nav_unseen_drafts && EntityFolder.DRAFTS.equals(account.folderType)))
|
|
|
|
|
count = account.messages;
|
|
|
|
|
else
|
|
|
|
|
count = account.unseen;
|
|
|
|
@ -273,6 +274,7 @@ public class AdapterNavAccountFolder extends RecyclerView.Adapter<AdapterNavAcco
|
|
|
|
|
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
|
|
|
|
this.nav_count = prefs.getBoolean("nav_count", false);
|
|
|
|
|
this.nav_count_pinned = prefs.getBoolean("nav_count_pinned", false);
|
|
|
|
|
this.nav_unseen_drafts = prefs.getBoolean("nav_unseen_drafts", false);
|
|
|
|
|
this.nav_categories = prefs.getBoolean("nav_categories", false);
|
|
|
|
|
boolean highlight_unread = prefs.getBoolean("highlight_unread", true);
|
|
|
|
|
int colorHighlight = prefs.getInt("highlight_color", Helper.resolveColor(context, R.attr.colorUnreadHighlight));
|
|
|
|
|