10.31 push
This commit is contained in:
@ -342,8 +342,12 @@ public class MainActivity extends BaseFragmentActivity implements OnClickListene
|
||||
if (keyCode == KeyEvent.KEYCODE_BACK && event.getRepeatCount() == 0) {
|
||||
DownloadEntity downloadEntity = null;
|
||||
for (DownloadEntity entity : DownloadManager.getInstance(getApplicationContext()).getAll()) {
|
||||
if (entity.getStatus().equals(DownloadStatus.done)
|
||||
&& !PackageUtils.isInstalled(getApplicationContext(), entity.getPackageName())) {
|
||||
if (entity.getStatus().equals(DownloadStatus.done)) {
|
||||
if (PackageUtils.isInstalled(getApplicationContext(), entity.getPackageName())
|
||||
&& (!entity.isPlugin()
|
||||
|| PackageUtils.isSignature(getApplicationContext(), entity.getPackageName()))) {
|
||||
continue;
|
||||
}
|
||||
if (downloadEntity == null) {
|
||||
downloadEntity = entity;
|
||||
} else if (entity.getEnd() > downloadEntity.getEnd()) {
|
||||
@ -527,15 +531,15 @@ public class MainActivity extends BaseFragmentActivity implements OnClickListene
|
||||
}
|
||||
}
|
||||
}, new Response.ErrorListener() {
|
||||
@Override
|
||||
public void onErrorResponse(VolleyError error) {
|
||||
addInitConcernCount();
|
||||
if (size == initConcernCount && concernDigest.size() != 0) {
|
||||
concernManager.addByList(concernDigest);
|
||||
Utils.log("初始化关注--有一个以上的游戏无法添加");
|
||||
}
|
||||
}
|
||||
});
|
||||
@Override
|
||||
public void onErrorResponse(VolleyError error) {
|
||||
addInitConcernCount();
|
||||
if (size == initConcernCount && concernDigest.size() != 0) {
|
||||
concernManager.addByList(concernDigest);
|
||||
Utils.log("初始化关注--有一个以上的游戏无法添加");
|
||||
}
|
||||
}
|
||||
});
|
||||
AppController.addToRequestQueue(request, TAG);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user