mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-02 19:10:11 +01:00
Moved ordering to setup
This commit is contained in:
@@ -41,7 +41,7 @@ import java.util.Objects;
|
||||
indices = {
|
||||
}
|
||||
)
|
||||
public class EntityAccount implements Serializable {
|
||||
public class EntityAccount extends EntityOrder implements Serializable {
|
||||
static final String TABLE_NAME = "account";
|
||||
|
||||
static final int DEFAULT_KEEP_ALIVE_INTERVAL = 19; // minutes
|
||||
@@ -70,7 +70,6 @@ public class EntityAccount implements Serializable {
|
||||
public String name;
|
||||
public String signature; // obsolete
|
||||
public Integer color;
|
||||
public Integer order;
|
||||
|
||||
@NonNull
|
||||
public Boolean synchronize;
|
||||
@@ -119,6 +118,16 @@ public class EntityAccount implements Serializable {
|
||||
nm.deleteNotificationChannel(getNotificationChannelId(id));
|
||||
}
|
||||
|
||||
@Override
|
||||
Long getSortId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
@Override
|
||||
String getSortTitle(Context context) {
|
||||
return name;
|
||||
}
|
||||
|
||||
public JSONObject toJSON() throws JSONException {
|
||||
JSONObject json = new JSONObject();
|
||||
json.put("id", id);
|
||||
|
||||
Reference in New Issue
Block a user