From 55df8fa7f4e02a9fdc9ceb4c77fa85cd909df10a Mon Sep 17 00:00:00 2001 From: "1105075896@qq.com" Date: Thu, 10 Aug 2017 22:59:31 +0800 Subject: [PATCH] =?UTF-8?q?BUG=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/build.gradle | 4 ++-- .../com/monke/monkeybook/bean/BookInfoBean.java | 16 ++++++++-------- .../com/monke/monkeybook/bean/BookShelfBean.java | 4 ++-- .../monke/monkeybook/bean/ChapterListBean.java | 10 +++++----- 4 files changed, 17 insertions(+), 17 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 98a9bfd..ce8534b 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -9,8 +9,8 @@ android { applicationId "com.monke.monkeybook" minSdkVersion 17 targetSdkVersion 25 - versionCode 6 - versionName "1.2.1" + versionCode 7 + versionName "1.2.2" manifestPlaceholders = [UMENG_CHANNEL_VALUE: "debug"] } diff --git a/app/src/main/java/com/monke/monkeybook/bean/BookInfoBean.java b/app/src/main/java/com/monke/monkeybook/bean/BookInfoBean.java index c8f5aa9..d039795 100644 --- a/app/src/main/java/com/monke/monkeybook/bean/BookInfoBean.java +++ b/app/src/main/java/com/monke/monkeybook/bean/BookInfoBean.java @@ -191,14 +191,14 @@ public class BookInfoBean implements Parcelable,Cloneable{ @Override protected Object clone() throws CloneNotSupportedException { BookInfoBean bookInfoBean = (BookInfoBean) super.clone(); - bookInfoBean.name = new String(name); - bookInfoBean.tag = new String(tag); - bookInfoBean.noteUrl = new String(noteUrl); - bookInfoBean.chapterUrl = new String(chapterUrl); - bookInfoBean.coverUrl = new String(coverUrl); - bookInfoBean.author = new String(author); - bookInfoBean.introduce = new String(introduce); - bookInfoBean.origin = new String(origin); + bookInfoBean.name = name; + bookInfoBean.tag = tag; + bookInfoBean.noteUrl = noteUrl; + bookInfoBean.chapterUrl = chapterUrl; + bookInfoBean.coverUrl = coverUrl; + bookInfoBean.author = author; + bookInfoBean.introduce = introduce; + bookInfoBean.origin = origin; if(chapterlist!=null){ List newList = new ArrayList<>(); Iterator iterator = chapterlist.iterator(); diff --git a/app/src/main/java/com/monke/monkeybook/bean/BookShelfBean.java b/app/src/main/java/com/monke/monkeybook/bean/BookShelfBean.java index a547dc2..7064192 100644 --- a/app/src/main/java/com/monke/monkeybook/bean/BookShelfBean.java +++ b/app/src/main/java/com/monke/monkeybook/bean/BookShelfBean.java @@ -136,8 +136,8 @@ public class BookShelfBean implements Parcelable,Cloneable{ @Override public Object clone() throws CloneNotSupportedException { BookShelfBean bookShelfBean = (BookShelfBean) super.clone(); - bookShelfBean.noteUrl = new String(noteUrl); - bookShelfBean.tag = new String(tag); + bookShelfBean.noteUrl = noteUrl; + bookShelfBean.tag = tag; bookShelfBean.bookInfoBean = (BookInfoBean) bookInfoBean.clone(); return bookShelfBean; } diff --git a/app/src/main/java/com/monke/monkeybook/bean/ChapterListBean.java b/app/src/main/java/com/monke/monkeybook/bean/ChapterListBean.java index 12331f1..b41bff0 100644 --- a/app/src/main/java/com/monke/monkeybook/bean/ChapterListBean.java +++ b/app/src/main/java/com/monke/monkeybook/bean/ChapterListBean.java @@ -137,11 +137,11 @@ public class ChapterListBean implements Parcelable,Cloneable{ @Override protected Object clone() throws CloneNotSupportedException { ChapterListBean chapterListBean = (ChapterListBean) super.clone(); - chapterListBean.noteUrl = new String(noteUrl); - chapterListBean.durChapterUrl = new String(durChapterUrl); - chapterListBean.durChapterName = new String(durChapterName); - chapterListBean.tag = new String(tag); - chapterListBean.hasCache = new Boolean(hasCache); + chapterListBean.noteUrl = noteUrl; + chapterListBean.durChapterUrl = durChapterUrl; + chapterListBean.durChapterName = durChapterName; + chapterListBean.tag = tag; + chapterListBean.hasCache = hasCache; chapterListBean.bookContentBean = new BookContentBean(); return chapterListBean; }