Skip to content

Commit aabc347

Browse files
committed
new favourite contains less unused data
1 parent 8252533 commit aabc347

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/main/java/ml/puredark/hviewer/ui/activities/CollectionActivity.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ public void onResultGot(String html, String url, int page) {
495495
if (HViewerApplication.DEBUG)
496496
SimpleFileUtil.writeString("/sdcard/html.txt", html, "utf-8");
497497
Rule applyRule = (currGalleryUrl != null && currGalleryUrl.equals(site.galleryUrl)) ? site.galleryRule : site.extraRule;
498-
myCollection = new LocalCollection(RuleParser.getCollectionDetail(myCollection, html, applyRule, url), myCollection.site);
498+
myCollection = new LocalCollection(RuleParser.getCollectionDetail(myCollection, html, applyRule, url), site);
499499

500500
if (myCollection.videos != null && myCollection.videos.size() > 0) {
501501
Logger.d("CollectionActivity", "myCollection.videos.size():" + myCollection.videos.size());
@@ -682,7 +682,7 @@ void viewInBrowser() {
682682

683683
@OnClick(R.id.fab_favor)
684684
void favor() {
685-
favouriteHolder.addFavourite(myCollection);
685+
favouriteHolder.addFavourite(new LocalCollection(collection, site));
686686
showSnackBar("收藏成功!");
687687
// 统计收藏次数
688688
MobclickAgent.onEvent(HViewerApplication.mContext, "FavorCollection");

0 commit comments

Comments
 (0)