整理hardcode问题,整理imageUtils工具类
This commit is contained in:
@ -181,7 +181,7 @@ public class MainActivity extends BaseActivity {
|
||||
// 是否是自动安装
|
||||
if (sp.getBoolean("autoinstall", true)) {
|
||||
if (FileUtils.isEmptyFile(downloadEntity.getPath())) {
|
||||
toast("解析包出错(可能被误删了),请重新下载");
|
||||
toast(R.string.install_failure_hint);
|
||||
DownloadManager.getInstance(MainActivity.this).cancel(downloadEntity.getUrl());
|
||||
} else {
|
||||
if (PackageUtils.isCanLaunchSetup(getApplicationContext(), downloadEntity.getPath())) {
|
||||
|
||||
Reference in New Issue
Block a user