Commit e9866173 by amateur

1

1 parent 14da30ed
...@@ -174,12 +174,12 @@ public class UpdateDialog extends DialogFragment implements View.OnClickListener ...@@ -174,12 +174,12 @@ public class UpdateDialog extends DialogFragment implements View.OnClickListener
String version = this.versionInfo.getvNumber(); String version = this.versionInfo.getvNumber();
String name = String.format("nafmii-%s.apk", version); String name = String.format("nafmii-%s.apk", version);
File file = new File(FileUtils.getSysDownLoadDir(), name); File file = new File(FileUtils.getSysDownLoadDir(), name);
if (file.exists() && BuildConfig.DEBUG) { // if (file.exists() && BuildConfig.DEBUG) {
updateProgress(100); // updateProgress(100);
CtxUtils.installApk(getActivity(), file.getAbsolutePath()); // CtxUtils.installApk(getActivity(), file.getAbsolutePath());
isInstall = true; // isInstall = true;
return; // return;
} // }
OkhttpApi.doDownload(url, file, new OkhttpApi.IDownListener() { OkhttpApi.doDownload(url, file, new OkhttpApi.IDownListener() {
@Override @Override
public void onProgress(int progress) { public void onProgress(int progress) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!