Skip to content

Commit

Permalink
new favourite contains less unused data
Browse files Browse the repository at this point in the history
  • Loading branch information
PureDark committed Mar 26, 2017
1 parent 8252533 commit aabc347
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit aabc347

Please sign in to comment.