1、移除部分haloapp的静态变量

2、整理hardcode tag
3、修复NPE
This commit is contained in:
CsHeng
2017-12-15 18:04:56 +08:00
parent 40fccea23a
commit 05be092d69
31 changed files with 287 additions and 118 deletions

View File

@ -29,6 +29,7 @@ import com.gh.common.view.SwipeLayout;
import com.gh.download.DownloadManager;
import com.gh.gamecenter.GameDetailActivity;
import com.gh.gamecenter.InstallActivity;
import com.gh.gamecenter.KcSelectGameActivity;
import com.gh.gamecenter.R;
import com.gh.gamecenter.adapter.viewholder.FooterViewHolder;
import com.gh.gamecenter.adapter.viewholder.GameNormalSwipeViewHolder;
@ -106,7 +107,7 @@ public class InstallFragmentAdapter extends BaseRecyclerAdapter<ViewHolder> {
if (runnableGame.isEmpty()) {
mActivity.loadEmpty();
} else {
HaloApp.MAIN_EXECUTOR.execute(new Runnable() {
HaloApp.getInstance().getMainExecutor().execute(new Runnable() {
@Override
public void run() {
init();
@ -511,7 +512,7 @@ public class InstallFragmentAdapter extends BaseRecyclerAdapter<ViewHolder> {
List<FileInfo> fileInfos = new ArrayList<>();
fileInfos.add(fileInfo);
HaloApp.put(HaloApp.KEY_FILE_INFO, fileInfos);
HaloApp.put(KcSelectGameActivity.KEY_FILE_INFO, fileInfos);
smoothListener.onOpen();
}