You cannot start a load on a not yet attached View or a Fragment where getActivity() returns null

前端 未结 5 1188
别跟我提以往
别跟我提以往 2021-01-13 21:26

I am using FragmentStatePagerAdapter to show around 5 fragments in an activity.On each activity I am showing the images which I am fetching from FirebaseListAdapter/Firebase

5条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-13 22:13

    I prefer using isAdded() method of fragment before loading image with Glide.

提交回复
热议问题