mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-29 09:01:30 +01:00
Fixed importing swipe left/right target
This commit is contained in:
@@ -253,6 +253,7 @@ public class EntityFolder implements Serializable {
|
||||
|
||||
public JSONObject toJSON() throws JSONException {
|
||||
JSONObject json = new JSONObject();
|
||||
json.put("id", id);
|
||||
json.put("name", name);
|
||||
json.put("type", type);
|
||||
json.put("level", level);
|
||||
@@ -270,6 +271,7 @@ public class EntityFolder implements Serializable {
|
||||
|
||||
public static EntityFolder fromJSON(JSONObject json) throws JSONException {
|
||||
EntityFolder folder = new EntityFolder();
|
||||
folder.id = json.getLong("id");
|
||||
folder.name = json.getString("name");
|
||||
folder.type = json.getString("type");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user