mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-05-20 12:49:02 +00:00
Fix empty state issue. Fixes #538
This commit is contained in:
parent
e9a1b08c91
commit
67e42186a5
1 changed files with 6 additions and 3 deletions
|
|
@ -72,6 +72,7 @@ import org.json.JSONObject;
|
|||
|
||||
import android.app.Activity;
|
||||
import android.support.v7.app.AlertDialog;
|
||||
import android.util.Log;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.lang.annotation.Annotation;
|
||||
|
|
@ -375,9 +376,11 @@ public class APIHelper implements Action1<Throwable> {
|
|||
int position = 0;
|
||||
for (String taskId : taskOrder) {
|
||||
Task task = taskMap.get(taskId);
|
||||
task.position = position;
|
||||
taskList.add(task);
|
||||
position++;
|
||||
if (task != null) {
|
||||
task.position = position;
|
||||
taskList.add(task);
|
||||
position++;
|
||||
}
|
||||
}
|
||||
return taskList;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue