[feature]主线程刷新列表
This commit is contained in:
parent
3c6191a816
commit
f3863d6359
|
@ -47,7 +47,7 @@ public class VideoFragment extends BaseFragment<FragmentVideoBinding> {
|
|||
list.add(bitmap);
|
||||
list.add(bitmap);
|
||||
list.add(bitmap);
|
||||
adapter.notifyDataSetChanged();
|
||||
getActivity().runOnUiThread(() -> adapter.notifyDataSetChanged());
|
||||
}).start();
|
||||
adapter=new VideoAdapter(list);
|
||||
recyclerView.setAdapter(adapter);
|
||||
|
|
Loading…
Reference in New Issue