Merge branch 'dev' of gitlab.ghzs.com:halo/assistant-android into dev
This commit is contained in:
@ -6,6 +6,7 @@ import android.os.AsyncTask;
|
||||
import androidx.recyclerview.widget.DiffUtil;
|
||||
|
||||
import com.lightgame.adapter.BaseRecyclerAdapter;
|
||||
import com.lightgame.utils.Utils;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
@ -102,6 +103,8 @@ public abstract class ListAdapter<DataType> extends BaseRecyclerAdapter {
|
||||
}
|
||||
|
||||
public void loadChange(LoadStatus status) {
|
||||
|
||||
Utils.log("=====>>>" + status.name());
|
||||
switch (status) {
|
||||
case INIT_OVER:
|
||||
case LIST_OVER:
|
||||
@ -128,7 +131,7 @@ public abstract class ListAdapter<DataType> extends BaseRecyclerAdapter {
|
||||
if (mEntityList != null) mEntityList.clear();
|
||||
mIsNetworkError = false;
|
||||
mIsOver = false;
|
||||
mIsLoading = false;
|
||||
mIsLoading = true;
|
||||
notifyDataSetChanged();
|
||||
return;
|
||||
}
|
||||
|
||||
@ -135,15 +135,6 @@ class NewCategoryListFragment : ListFragment<GameEntity, NewCategoryListViewMode
|
||||
}
|
||||
}
|
||||
|
||||
override fun onLoadRefresh() {
|
||||
mBaseHandler.postDelayed({ mListViewModel.load(LoadType.REFRESH) }, 200)
|
||||
|
||||
mReuseNoConn.visibility = View.GONE
|
||||
mReuseNoData.visibility = View.GONE
|
||||
mListLoading.visibility = View.VISIBLE
|
||||
mListRv.visibility = View.GONE
|
||||
}
|
||||
|
||||
override fun onRefresh() {
|
||||
mAdapter?.clearPositionAndPackageMap()
|
||||
|
||||
|
||||
@ -1,14 +1,11 @@
|
||||
package com.gh.gamecenter.message;
|
||||
|
||||
import androidx.lifecycle.ViewModelProviders;
|
||||
|
||||
import android.os.Bundle;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
|
||||
import android.view.View;
|
||||
|
||||
import com.gh.common.util.DialogUtils;
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.lifecycle.ViewModelProviders;
|
||||
|
||||
import com.gh.common.util.MtaHelper;
|
||||
import com.gh.gamecenter.MessageInviteActivity;
|
||||
import com.gh.gamecenter.MessageKeFuActivity;
|
||||
|
||||
Reference in New Issue
Block a user