mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-02 11:01:23 +01:00
Bring back folder hiding
This commit is contained in:
@@ -85,7 +85,7 @@ public class EntityFolder extends EntityOrder implements Serializable {
|
||||
public Boolean auto_delete = false;
|
||||
public String display;
|
||||
@NonNull
|
||||
public Boolean hide = false; // obsolete
|
||||
public Boolean hide = false;
|
||||
@NonNull
|
||||
public Boolean collapsed = false;
|
||||
@NonNull
|
||||
@@ -289,6 +289,7 @@ public class EntityFolder extends EntityOrder implements Serializable {
|
||||
this.keep_days.equals(other.keep_days) &&
|
||||
Objects.equals(this.display, other.display) &&
|
||||
Objects.equals(this.order, other.order) &&
|
||||
this.hide == other.hide &&
|
||||
this.collapsed == other.collapsed &&
|
||||
this.unified == other.unified &&
|
||||
this.notify == other.notify &&
|
||||
@@ -322,6 +323,7 @@ public class EntityFolder extends EntityOrder implements Serializable {
|
||||
json.put("keep_days", keep_days);
|
||||
json.put("auto_delete", auto_delete);
|
||||
json.put("display", display);
|
||||
json.put("hide", hide);
|
||||
json.put("collapsed", collapsed);
|
||||
json.put("unified", unified);
|
||||
json.put("navigation", navigation);
|
||||
@@ -364,6 +366,9 @@ public class EntityFolder extends EntityOrder implements Serializable {
|
||||
if (json.has("display") && !json.isNull("display"))
|
||||
folder.display = json.getString("display");
|
||||
|
||||
if (json.has("hide"))
|
||||
folder.hide = json.getBoolean("hide");
|
||||
|
||||
if (json.has("collapsed"))
|
||||
folder.collapsed = json.getBoolean("collapsed");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user