!format: 全局格式化代码
This commit is contained in:
@ -565,12 +565,12 @@ public class DownloadManager implements DownloadStatusListener {
|
||||
|
||||
/**
|
||||
* 获取快照
|
||||
*
|
||||
* <p>
|
||||
* 畅玩游戏优先根据游戏 ID 获取,非畅玩游戏根据 url 获取
|
||||
*
|
||||
* @param url 下载链接
|
||||
* @param url 下载链接
|
||||
* @param isVGame 是不是畅玩游戏
|
||||
* @param gameId 游戏 ID
|
||||
* @param gameId 游戏 ID
|
||||
* @return null表示下载列表中不存在该任务,否则返回下载任务
|
||||
*/
|
||||
@Nullable
|
||||
@ -713,8 +713,8 @@ public class DownloadManager implements DownloadStatusListener {
|
||||
for (DownloadEntity downloadEntity : downloadEntityList) {
|
||||
if (!ExtensionsKt.isSimulatorGame(downloadEntity)) {
|
||||
if (!Constants.SILENT_UPDATE.equals(ExtensionsKt.getMetaExtra(downloadEntity, Constants.EXTRA_DOWNLOAD_TYPE))
|
||||
&& !Constants.SIMULATOR_DOWNLOAD.equals(ExtensionsKt.getMetaExtra(downloadEntity, Constants.EXTRA_DOWNLOAD_TYPE))
|
||||
&& !Constants.SMOOTH_GAME.equals(ExtensionsKt.getMetaExtra(downloadEntity, Constants.EXTRA_DOWNLOAD_TYPE))
|
||||
&& !Constants.SIMULATOR_DOWNLOAD.equals(ExtensionsKt.getMetaExtra(downloadEntity, Constants.EXTRA_DOWNLOAD_TYPE))
|
||||
&& !Constants.SMOOTH_GAME.equals(ExtensionsKt.getMetaExtra(downloadEntity, Constants.EXTRA_DOWNLOAD_TYPE))
|
||||
) {
|
||||
filteredDownloadEntityList.add(downloadEntity);
|
||||
}
|
||||
@ -881,7 +881,6 @@ public class DownloadManager implements DownloadStatusListener {
|
||||
|
||||
/**
|
||||
* 立马通知 dataWatcher 更新已下载完的任务状态,这里的下载完成是持久状态,不是瞬时状态
|
||||
*
|
||||
*/
|
||||
private void notifyDownloadedStatusASAP(DataWatcher dataWatcher) {
|
||||
for (DownloadEntity downloadEntity : getAllDownloadEntitySnapshots()) {
|
||||
@ -1191,6 +1190,7 @@ public class DownloadManager implements DownloadStatusListener {
|
||||
|
||||
/**
|
||||
* 添加不可见的 pending 下载任务
|
||||
*
|
||||
* @param downloadEntity 任务信息实体
|
||||
*/
|
||||
public void addInvisiblePendingTask(DownloadEntity downloadEntity) {
|
||||
|
||||
Reference in New Issue
Block a user