暫定
This commit is contained in:
parent
d27f04dade
commit
f87ff116bc
|
@ -117,17 +117,7 @@ public class SettingMainFragment extends Fragment {
|
||||||
}).thenAccept(childModels -> {
|
}).thenAccept(childModels -> {
|
||||||
mainAdapter.setChildDataList(childModels);
|
mainAdapter.setChildDataList(childModels);
|
||||||
requireActivity().runOnUiThread(() -> {
|
requireActivity().runOnUiThread(() -> {
|
||||||
try {
|
mainAdapter.notifyDataSetChanged(); // Workaround
|
||||||
mainAdapter.notifyItemRangeInserted(0, childModels.size());
|
|
||||||
} catch (IndexOutOfBoundsException e) {
|
|
||||||
try {
|
|
||||||
mainAdapter.notifyDataSetChanged();
|
|
||||||
} catch (Exception e1) {
|
|
||||||
Toast.makeText(requireContext(), "エラーが発生しました", Toast.LENGTH_SHORT).show();
|
|
||||||
}
|
|
||||||
} catch (Exception e) {
|
|
||||||
Toast.makeText(requireContext(), "エラーが発生しました", Toast.LENGTH_SHORT).show();
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user