Open duzechao opened 7 years ago
`private void updateHelperDisplays() {
automaticLoadMoreEnabled = false; if (mSwipeRefreshLayout != null) mSwipeRefreshLayout.setRefreshing(false); if (mAdapter == null) return; /** * fixed by jjHesk * + empty layout is NONE * + getItemCount is zero */ if (!isFirstLoadingOnlineAdapter) { isFirstLoadingOnlineAdapter = true; if (mAdapter.getAdapterItemCount() == 0) { mEmpty.setVisibility(mEmptyView == null ? View.VISIBLE : View.GONE); } else if (mEmptyId != 0) { implementLoadMorebehavior(); mEmpty.setVisibility(View.GONE); } } else { //isFirstLoadingOnlineAdapter = false; setRefreshing(false); implementLoadMorebehavior(); } }`
mEmpty.setVisibility(mEmptyView == null ? View.VISIBLE : View.GONE);???
`private void updateHelperDisplays() {
mEmpty.setVisibility(mEmptyView == null ? View.VISIBLE : View.GONE);???