Workaround

This commit is contained in:
rca 2024-07-06 12:10:29 +09:00
parent f87ff116bc
commit 172b6b5a3a

View File

@ -116,6 +116,12 @@ public class SettingMainFragment extends Fragment {
}
}).thenAccept(childModels -> {
mainAdapter.setChildDataList(childModels);
// Workaround: RecyclerViewの更新と推移アニメーションが競合するため 200ms 待機
try {
Thread.sleep(200);
} catch (InterruptedException e) {
// Do nothing
}
requireActivity().runOnUiThread(() -> {
mainAdapter.notifyDataSetChanged(); // Workaround
});