|
|
|
@ -2335,6 +2335,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|
|
|
|
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
|
|
|
|
boolean expand_all = prefs.getBoolean("expand_all", false);
|
|
|
|
|
boolean expand_one = prefs.getBoolean("expand_one", true);
|
|
|
|
|
boolean swipe_reply = prefs.getBoolean("swipe_reply", false);
|
|
|
|
|
boolean tools = prefs.getBoolean("message_tools", true);
|
|
|
|
|
boolean button_junk = prefs.getBoolean("button_junk", true);
|
|
|
|
|
boolean button_trash = prefs.getBoolean("button_trash", true);
|
|
|
|
@ -2361,7 +2362,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|
|
|
|
boolean button_raw = prefs.getBoolean("button_raw", false);
|
|
|
|
|
boolean button_unsubscribe = prefs.getBoolean("button_unsubscribe", true);
|
|
|
|
|
boolean button_rule = prefs.getBoolean("button_rule", false);
|
|
|
|
|
boolean swipe_reply = prefs.getBoolean("swipe_reply", false);
|
|
|
|
|
boolean button_answer = prefs.getBoolean("button_answer", false);
|
|
|
|
|
|
|
|
|
|
int importance = (((message.ui_importance == null ? 1 : message.ui_importance) + 1) % 3);
|
|
|
|
|
|
|
|
|
@ -2375,7 +2376,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|
|
|
|
ibInbox.setImageResource(inJunk ? R.drawable.twotone_report_off_24 : R.drawable.twotone_inbox_24);
|
|
|
|
|
|
|
|
|
|
ibUndo.setVisibility(outbox ? View.VISIBLE : View.GONE);
|
|
|
|
|
ibAnswer.setVisibility(!tools || outbox || (!expand_all && expand_one) || !threading || swipe_reply ? View.GONE : View.VISIBLE);
|
|
|
|
|
ibAnswer.setVisibility(!tools || outbox || (!expand_all && expand_one && !button_answer) || (!threading && !button_answer) || (swipe_reply && !button_answer) ? View.GONE : View.VISIBLE);
|
|
|
|
|
ibRule.setVisibility(tools && button_rule && !outbox && !message.folderReadOnly ? View.VISIBLE : View.GONE);
|
|
|
|
|
ibUnsubscribe.setVisibility(tools && button_unsubscribe && message.unsubscribe != null ? View.VISIBLE : View.GONE);
|
|
|
|
|
ibRaw.setVisibility(tools && button_raw && raw ? View.VISIBLE : View.GONE);
|
|
|
|
|