29
RecyclerView和java.lang.IndexOutOfBoundsException:检测到不一致。三星设备中无效的视图支架适配器positionViewHolder
我有一个回收站视图,该视图可以在除三星之外的所有设备上完美运行。在三星上,我得到了 java.lang.IndexOutOfBoundsException:检测到不一致。无效的视图支架适配器positionViewHolder 当我从另一个活动中返回带有回收者视图的片段时。 适配器代码: public class FeedRecyclerAdapter extends RecyclerView.Adapter<FeedRecyclerAdapter.MovieViewHolder> { public static final String getUserPhoto = APIConstants.BASE_URL + APIConstants.PICTURE_PATH_SMALL; Movie[] mMovies = null; Context mContext = null; Activity mActivity = null; LinearLayoutManager mManager = null; private Bus uiBus = null; int mCountOfLikes = 0; //Constructor public FeedRecyclerAdapter(Movie[] movies, Context context, …