Added option to disable message move button

This commit is contained in:
M66B
2020-03-23 16:12:34 +01:00
parent a709812ab8
commit 0eb12fb29a
5 changed files with 34 additions and 9 deletions

View File

@@ -1556,7 +1556,8 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
final boolean delete = (inTrash || !hasTrash || outbox || message.uid == null);
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
boolean archive_trash = prefs.getBoolean("archive_trash", true);
boolean button_archive_trash = prefs.getBoolean("button_archive_trash", true);
boolean button_move = prefs.getBoolean("button_move", true);
boolean expand_all = prefs.getBoolean("expand_all", false);
boolean expand_one = prefs.getBoolean("expand_one", true);
@@ -1569,9 +1570,9 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
ibUnsubscribe.setVisibility(message.unsubscribe == null ? View.GONE : View.VISIBLE);
ibAnswer.setVisibility(outbox || (!expand_all && expand_one) ? View.GONE : View.VISIBLE);
ibMove.setVisibility(move ? View.VISIBLE : View.GONE);
ibArchive.setVisibility(archive && archive_trash ? View.VISIBLE : View.GONE);
ibTrash.setVisibility(trash && archive_trash ? View.VISIBLE : View.GONE);
ibMove.setVisibility(move && button_move ? View.VISIBLE : View.GONE);
ibArchive.setVisibility(archive && button_archive_trash ? View.VISIBLE : View.GONE);
ibTrash.setVisibility(trash && button_archive_trash ? View.VISIBLE : View.GONE);
ibJunk.setVisibility(junk || unjunk ? View.VISIBLE : View.GONE);
bindBody(message, scroll);