Workaround
This commit is contained in:
parent
92a5aa8210
commit
6663f92cf8
|
@ -67,6 +67,11 @@ public class ParentMainFragment extends Fragment {
|
||||||
}
|
}
|
||||||
}).thenAccept(taskItemModel -> {
|
}).thenAccept(taskItemModel -> {
|
||||||
parentAdapter.setTaskDataList(taskItemModel);
|
parentAdapter.setTaskDataList(taskItemModel);
|
||||||
|
try { // Workaround
|
||||||
|
Thread.sleep(200);
|
||||||
|
} catch (InterruptedException e) {
|
||||||
|
// Do nothing
|
||||||
|
}
|
||||||
requireActivity().runOnUiThread(()-> {
|
requireActivity().runOnUiThread(()-> {
|
||||||
parentAdapter.notifyDataSetChanged(); // Workaround
|
parentAdapter.notifyDataSetChanged(); // Workaround
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user