toast context判断 禁止context.getString 操作

This commit is contained in:
kehaoyuan
2018-02-03 10:16:27 +08:00
parent bf51be498b
commit d29ccc0aca
28 changed files with 49 additions and 54 deletions

View File

@ -441,7 +441,7 @@ public class DownloadItemUtils {
if (downloadEntity != null) {
final String path = downloadEntity.getPath();
if (FileUtils.isEmptyFile(path)) {
Utils.toast(context, context.getString(R.string.install_failure_hint));
Utils.toast(context, R.string.install_failure_hint);
DownloadManager.getInstance(context).cancel(downloadEntity.getUrl());
if (gameEntity.getEntryMap() != null) {
gameEntity.getEntryMap().remove(apkEntity.getPlatform());