9月7日测试包 UI部分未完成

This commit is contained in:
kehaoyuan
2017-09-11 10:44:30 +08:00
parent 4de5593802
commit 814d4faf3e
18 changed files with 45 additions and 27 deletions

View File

@ -79,8 +79,6 @@ public class InstallFragmentAdapter extends BaseRecyclerAdapter<ViewHolder> {
private boolean isSwipe;
private boolean showUserNameHint;
private boolean showKcHint;
private int maxWidth;
@ -100,7 +98,6 @@ public class InstallFragmentAdapter extends BaseRecyclerAdapter<ViewHolder> {
isSwipe = false;
sp = PreferenceManager.getDefaultSharedPreferences(mContext);
showUserNameHint = sp.getBoolean("showUserNameHint", true);
showKcHint = sp.getBoolean("showKcHint", true);
maxWidth = mContext.getResources().getDisplayMetrics().widthPixels;
@ -388,7 +385,7 @@ public class InstallFragmentAdapter extends BaseRecyclerAdapter<ViewHolder> {
return ItemViewType.GAME_NORMAL;
}
if (isRemove && !showUserNameHint && showKcHint) {
if (isRemove && showKcHint) {
return ItemViewType.KC_HINT;
}
@ -400,7 +397,7 @@ public class InstallFragmentAdapter extends BaseRecyclerAdapter<ViewHolder> {
if (gameList.isEmpty() && !isRemove) {
return 1;
}
if (isRemove && !showUserNameHint && showKcHint) {
if (isRemove && showKcHint) {
return gameList.size() + 1;
}
if (isRemove) {