mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-05-23 22:27:15 +00:00
fix issue with loading tasks
This commit is contained in:
parent
3316887153
commit
f2739bc30c
1 changed files with 3 additions and 0 deletions
|
|
@ -33,6 +33,9 @@ public class DateDeserializer implements JsonDeserializer<Date>, JsonSerializer<
|
|||
@Override
|
||||
public synchronized Date deserialize(JsonElement jsonElement, Type type, JsonDeserializationContext jsonDeserializationContext) {
|
||||
if (jsonElement.isJsonArray()) {
|
||||
if (jsonElement.getAsJsonArray().size() == 0) {
|
||||
return null;
|
||||
}
|
||||
jsonElement = jsonElement.getAsJsonArray().get(0);
|
||||
}
|
||||
if (jsonElement.getAsString().length() == 0) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue