Refactoring

This commit is contained in:
M66B
2018-12-01 10:17:49 +01:00
parent b77ea55641
commit 1a8ae5a5f1
4 changed files with 13 additions and 20 deletions

View File

@@ -19,6 +19,8 @@ package eu.faircode.email;
Copyright 2018 by Marcel Bokhorst (M66B)
*/
import android.content.Context;
import org.json.JSONException;
import org.json.JSONObject;
@@ -132,6 +134,10 @@ public class EntityFolder implements Serializable {
public EntityFolder() {
}
String getDisplayName(Context context) {
return (display == null ? Helper.localizeFolderName(context, name) : display);
}
boolean isOutgoing() {
return isOutgoing(this.type);
}