diff --git a/app/src/main/java/ml/puredark/hviewer/ui/activities/CollectionActivity.java b/app/src/main/java/ml/puredark/hviewer/ui/activities/CollectionActivity.java index d948e9e..81b239d 100644 --- a/app/src/main/java/ml/puredark/hviewer/ui/activities/CollectionActivity.java +++ b/app/src/main/java/ml/puredark/hviewer/ui/activities/CollectionActivity.java @@ -495,7 +495,7 @@ public void onResultGot(String html, String url, int page) { if (HViewerApplication.DEBUG) SimpleFileUtil.writeString("/sdcard/html.txt", html, "utf-8"); Rule applyRule = (currGalleryUrl != null && currGalleryUrl.equals(site.galleryUrl)) ? site.galleryRule : site.extraRule; - myCollection = new LocalCollection(RuleParser.getCollectionDetail(myCollection, html, applyRule, url), myCollection.site); + myCollection = new LocalCollection(RuleParser.getCollectionDetail(myCollection, html, applyRule, url), site); if (myCollection.videos != null && myCollection.videos.size() > 0) { Logger.d("CollectionActivity", "myCollection.videos.size():" + myCollection.videos.size()); @@ -682,7 +682,7 @@ void viewInBrowser() { @OnClick(R.id.fab_favor) void favor() { - favouriteHolder.addFavourite(myCollection); + favouriteHolder.addFavourite(new LocalCollection(collection, site)); showSnackBar("收藏成功!"); // 统计收藏次数 MobclickAgent.onEvent(HViewerApplication.mContext, "FavorCollection");