Skip to content

Commit

Permalink
优化
Browse files Browse the repository at this point in the history
  • Loading branch information
gedoor committed Jul 4, 2020
1 parent 88f76b2 commit 756d39f
Show file tree
Hide file tree
Showing 15 changed files with 16 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ public HashSet<String> getSelected() {
return selectList;
}

class MyViewHolder extends RecyclerView.ViewHolder {
static class MyViewHolder extends RecyclerView.ViewHolder {
CoverImageView ivCover;
TextView tvName;
BadgeView bvUnread;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ public HashSet<String> getSelected() {
return selectList;
}

class MyViewHolder extends RecyclerView.ViewHolder {
static class MyViewHolder extends RecyclerView.ViewHolder {
ViewGroup flContent;
CoverImageView ivCover;
BadgeView bvUnread;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public int getItemCount() {
return dataList.size();
}

class MyViewHolder extends RecyclerView.ViewHolder {
static class MyViewHolder extends RecyclerView.ViewHolder {
CheckBox cbView;
ImageView editView;
ImageView delView;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public int getICount() {
return allBookBeans.size();
}

class MyViewHolder extends RecyclerView.ViewHolder {
static class MyViewHolder extends RecyclerView.ViewHolder {
LinearLayout llContent;
TextView tvBookSource;
TextView tvLastChapter;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public interface Callback {
void clickItem(View animView, int position, SearchBookBean searchBookBean);
}

class MyViewHolder extends RecyclerView.ViewHolder {
static class MyViewHolder extends RecyclerView.ViewHolder {
ViewGroup flContent;
CoverImageView ivCover;
TextView tvName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public int getItemCount() {
return data.size();
}

class MyViewHolder extends RecyclerView.ViewHolder {
static class MyViewHolder extends RecyclerView.ViewHolder {
CoverImageView ivCover;
TextView tvName;
TextView tvDownload;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,7 @@ public void setCheckedAll(boolean isChecked) {

private boolean isFileLoaded(String id) {
//如果是已加载的文件,则点击事件无效。
if (BookshelfHelp.getBook(id) != null) {
return true;
}
return false;
return BookshelfHelp.getBook(id) != null;
}

public int getCheckableCount() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public int getItemCount() {
return data.size();
}

class MyViewHolder extends RecyclerView.ViewHolder {
static class MyViewHolder extends RecyclerView.ViewHolder {
TextView tvSourceName;

public MyViewHolder(@NonNull View itemView) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public List<RecyclerViewData> getData() {
return data;
}

class HeaderHolder extends RecyclerView.ViewHolder {
static class HeaderHolder extends RecyclerView.ViewHolder {
TextView tv_source_name;

HeaderHolder(View itemView) {
Expand All @@ -117,7 +117,7 @@ class HeaderHolder extends RecyclerView.ViewHolder {
}
}

class DescHolder extends RecyclerView.ViewHolder {
static class DescHolder extends RecyclerView.ViewHolder {
TextView tv_item;

DescHolder(View view) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public int getItemCount() {
return data.size();
}

class MyViewHolder extends RecyclerView.ViewHolder {
static class MyViewHolder extends RecyclerView.ViewHolder {
CheckBox checkBox;
ImageView editView;
ImageView delView;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ public SearchBookBean getItemData(int pos) {
return searchBooks.get(pos);
}

class MyViewHolder extends RecyclerView.ViewHolder {
static class MyViewHolder extends RecyclerView.ViewHolder {
ViewGroup flContent;
CoverImageView ivCover;
TextView tvName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public int getItemCount() {
return beans.size();
}

class MyViewHolder extends RecyclerView.ViewHolder {
static class MyViewHolder extends RecyclerView.ViewHolder {
TextView textView;

public MyViewHolder(@NonNull View itemView) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public int getItemCount() {
}


class MyViewHolder extends RecyclerView.ViewHolder {
static class MyViewHolder extends RecyclerView.ViewHolder {
TextView textView;

public MyViewHolder(@NonNull View itemView) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public int getItemCount() {
}


class MyViewHolder extends RecyclerView.ViewHolder {
static class MyViewHolder extends RecyclerView.ViewHolder {
TextInputLayout textInputLayout;
AppCompatEditText editText;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public int getItemCount() {
return data.size();
}

class MyViewHolder extends RecyclerView.ViewHolder {
static class MyViewHolder extends RecyclerView.ViewHolder {
CheckBox checkBox;
ImageView editView;
ImageView delView;
Expand Down

0 comments on commit 756d39f

Please sign in to comment.