mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-27 19:35:10 +01:00
Clear empty answer groups on import
This commit is contained in:
@@ -20,6 +20,7 @@ package eu.faircode.email;
|
||||
*/
|
||||
|
||||
import android.text.Html;
|
||||
import android.text.TextUtils;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.room.Entity;
|
||||
@@ -146,6 +147,8 @@ public class EntityAnswer implements Serializable {
|
||||
answer.id = json.getLong("id");
|
||||
answer.name = json.getString("name");
|
||||
answer.group = json.optString("group");
|
||||
if (TextUtils.isEmpty(answer.group))
|
||||
answer.group = null;
|
||||
answer.standard = json.optBoolean("standard");
|
||||
answer.receipt = json.optBoolean("receipt");
|
||||
answer.favorite = json.optBoolean("favorite");
|
||||
|
||||
Reference in New Issue
Block a user