修复V3.6.6 RELEASE(20190723-1830)测试问题汇总(21~23,25~26) https://gitlab.ghzs.com/pm/halo-app-issues/issues/592

This commit is contained in:
chenjuntao
2019-07-29 16:12:02 +08:00
parent 24be8be4b2
commit 498c626227
9 changed files with 188 additions and 45 deletions

View File

@ -27,7 +27,6 @@ import com.gh.gamecenter.entity.ApkEntity;
import com.gh.gamecenter.entity.GameEntity;
import com.gh.gamecenter.entity.PluginLocation;
import com.gh.gamecenter.manager.PackagesManager;
import com.gh.gamecenter.mygame.MyGameActivity;
import com.lightgame.download.DownloadConfig;
import com.lightgame.download.DownloadEntity;
import com.lightgame.download.DownloadStatus;
@ -370,9 +369,18 @@ public class DownloadItemUtils {
});
} else {
downloadBtn.setOnClickListener(v -> {
context.startActivity(MyGameActivity.getIntentWithConfig(context, 2));
if (clickCallback != null) {
clickCallback.onCallback();
if ("download".equals(gameEntity.getReserveStatus())) {
ReservationHelper.showDeleteReservationDialog(context, () -> {
ReservationHelper.deleteReservation(gameEntity, () -> {
adapter.notifyItemChanged(position);
});
});
} else {
ReservationHelper.showCancelReservationDialog(context, () -> {
ReservationHelper.cancelReservation(gameEntity, () -> {
adapter.notifyItemChanged(position);
});
});
}
});
}