|
@@ -609,7 +609,7 @@ namespace GFGGame
|
|
|
if (galleryData.CollectOrNot)
|
|
|
{
|
|
|
bool result = await PoemGallerySProxy.ReqCancelCollecteGalleryWorks(workId);
|
|
|
- if (result)
|
|
|
+ if (result && isShowing)
|
|
|
{
|
|
|
if (_tabIndex == TabType.FAVORITES && _subtabIndex == FavoritesType.FAVORITE)
|
|
|
{
|
|
@@ -624,7 +624,7 @@ namespace GFGGame
|
|
|
else
|
|
|
{
|
|
|
bool result = await PoemGallerySProxy.ReqCollecteGalleryWorks(workId);
|
|
|
- if (result)
|
|
|
+ if (result && isShowing)
|
|
|
{
|
|
|
if (_tabIndex == TabType.FAVORITES && _subtabIndex == FavoritesType.FAVORITE)
|
|
|
{
|
|
@@ -660,7 +660,7 @@ namespace GFGGame
|
|
|
}
|
|
|
|
|
|
bool result = await PoemGallerySProxy.ReqVoteGalleryWorks(workId);
|
|
|
- if (result)
|
|
|
+ if (result && isShowing)
|
|
|
{
|
|
|
|
|
|
UpdateGalleryList();
|
|
@@ -740,7 +740,7 @@ namespace GFGGame
|
|
|
|
|
|
bool result = await PoemGallerySProxy.ReqGalleryList(_sortType, 0, PoemGalleryDataManager.pageCount);
|
|
|
// OnPullDownTimeComplete();
|
|
|
- if (result)
|
|
|
+ if (result && isShowing)
|
|
|
{
|
|
|
Timers.inst.StartCoroutine(PictureStorageHelper.Download(_galleryDatas, 0, UpdateGalleryList));
|
|
|
}
|
|
@@ -771,7 +771,7 @@ namespace GFGGame
|
|
|
_scrollList.scrollPane.LockFooter(footer.sourceHeight + 10);
|
|
|
|
|
|
bool result = await PoemGallerySProxy.ReqGalleryList(_sortType, _galleryDatas.Count, PoemGalleryDataManager.pageCount);
|
|
|
- if (result)
|
|
|
+ if (result && isShowing)
|
|
|
{
|
|
|
Timers.inst.StartCoroutine(PictureStorageHelper.Download(_galleryDatas, _lastGalleryDatasCount, UpdateGalleryList));
|
|
|
}
|