Fix rating if the gallery has been rated by the user
This commit is contained in:
1 parent
59d141fc8e
commit
016ec23fbd
3 files changed
+20
-1
No files matched your search
@@ -209,7 +209,22 @@ public class EhEngine {
|
||||
}
|
||||
}
|
||||
|
||||
if (list.size() > 0 && (TextUtils.isEmpty(list.get(0).uploader) || Settings.getShowJpnTitle() || Settings.getShowGalleryPages() || sEhFilter.needCallApi())) {
|
||||
boolean anyRated = false;
|
||||
for (GalleryInfo info : list) {
|
||||
if (info.rated) {
|
||||
anyRated = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
boolean needFillByApi = list.size() > 0
|
||||
&& (TextUtils.isEmpty(list.get(0).uploader)
|
||||
|| anyRated
|
||||
|| Settings.getShowJpnTitle()
|
||||
|| Settings.getShowGalleryPages()
|
||||
|| sEhFilter.needCallApi());
|
||||
|
||||
if (needFillByApi) {
|
||||
// Fill by api
|
||||
fillGalleryListByApi(task, okHttpClient, list);
|
||||
|
||||
|
||||
Reference in new issue
Block a user