fixed media timeline load more
This commit is contained in:
parent
1a8526f581
commit
916692973f
|
@ -33,6 +33,7 @@ public abstract class AbsParcelableStatusesAdapter extends AbsStatusesAdapter<Li
|
|||
|
||||
public AbsParcelableStatusesAdapter(Context context, boolean compact) {
|
||||
super(context, compact);
|
||||
setHasStableIds(true);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -18,7 +18,6 @@ public class ListParcelableStatusesAdapter extends AbsParcelableStatusesAdapter
|
|||
|
||||
public ListParcelableStatusesAdapter(Context context, boolean compact) {
|
||||
super(context, compact);
|
||||
setHasStableIds(true);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -45,7 +45,6 @@ public class StaggeredGridParcelableStatusesAdapter extends AbsParcelableStatuse
|
|||
|
||||
public StaggeredGridParcelableStatusesAdapter(Context context, boolean compact) {
|
||||
super(context, compact);
|
||||
setHasStableIds(true);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -1146,7 +1146,6 @@ public class StatusFragment extends BaseSupportFragment implements LoaderCallbac
|
|||
private List<ParcelableStatus> mConversation, mReplies;
|
||||
private StatusAdapterListener mStatusAdapterListener;
|
||||
private RecyclerView mRecyclerView;
|
||||
private DetailStatusViewHolder mStatusViewHolder;
|
||||
private CharSequence mReplyError;
|
||||
|
||||
public StatusAdapter(StatusFragment fragment, boolean compact) {
|
||||
|
@ -1351,22 +1350,6 @@ public class StatusFragment extends BaseSupportFragment implements LoaderCallbac
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onViewDetachedFromWindow(ViewHolder holder) {
|
||||
if (holder instanceof DetailStatusViewHolder) {
|
||||
mStatusViewHolder = (DetailStatusViewHolder) holder;
|
||||
}
|
||||
super.onViewDetachedFromWindow(holder);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onViewAttachedToWindow(ViewHolder holder) {
|
||||
if (holder == mStatusViewHolder) {
|
||||
mStatusViewHolder = null;
|
||||
}
|
||||
super.onViewAttachedToWindow(holder);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isLoadMoreIndicatorVisible() {
|
||||
return mLoadMoreIndicatorVisible;
|
||||
|
@ -1399,9 +1382,6 @@ public class StatusFragment extends BaseSupportFragment implements LoaderCallbac
|
|||
public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
|
||||
switch (viewType) {
|
||||
case VIEW_TYPE_DETAIL_STATUS: {
|
||||
if (mStatusViewHolder != null) {
|
||||
return mStatusViewHolder;
|
||||
}
|
||||
final View view;
|
||||
if (mIsCompact) {
|
||||
view = mInflater.inflate(R.layout.header_status_compact, parent, false);
|
||||
|
|
|
@ -41,8 +41,7 @@ public class UserMediaTimelineFragment extends AbsContentRecyclerViewFragment<St
|
|||
|
||||
@Override
|
||||
public boolean isRefreshing() {
|
||||
final Loader<Object> loader = getLoaderManager().getLoader(0);
|
||||
return loader != null && loader.isStarted();
|
||||
return getLoaderManager().hasRunningLoaders();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue