toast context判断 禁止context.getString 操作
This commit is contained in:
@ -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());
|
||||
|
||||
Reference in New Issue
Block a user