アニメーションでラグをごまかせたので遅延を削除
This commit is contained in:
parent
fbf49bbe43
commit
4974bfced6
|
@ -311,12 +311,6 @@ public class CommonHomeFragment extends Fragment {
|
|||
private void updateData() {
|
||||
swipeRefreshLayout.setRefreshing(true);
|
||||
CompletableFuture.allOf(updateTaskInfo(), updateCalender()).thenRun(() -> {
|
||||
// Workaround: リスト更新処理があまりにも重くてアニメーションが壊れるため
|
||||
try {
|
||||
Thread.sleep(500);
|
||||
} catch (InterruptedException e) {
|
||||
// do nothing
|
||||
}
|
||||
swipeRefreshLayout.setRefreshing(false);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user