Workaround
This commit is contained in:
parent
f87ff116bc
commit
172b6b5a3a
|
@ -116,6 +116,12 @@ public class SettingMainFragment extends Fragment {
|
||||||
}
|
}
|
||||||
}).thenAccept(childModels -> {
|
}).thenAccept(childModels -> {
|
||||||
mainAdapter.setChildDataList(childModels);
|
mainAdapter.setChildDataList(childModels);
|
||||||
|
// Workaround: RecyclerViewの更新と推移アニメーションが競合するため 200ms 待機
|
||||||
|
try {
|
||||||
|
Thread.sleep(200);
|
||||||
|
} catch (InterruptedException e) {
|
||||||
|
// Do nothing
|
||||||
|
}
|
||||||
requireActivity().runOnUiThread(() -> {
|
requireActivity().runOnUiThread(() -> {
|
||||||
mainAdapter.notifyDataSetChanged(); // Workaround
|
mainAdapter.notifyDataSetChanged(); // Workaround
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user