Commit e9866173 by amateur

1

1 parent 14da30ed
......@@ -174,12 +174,12 @@ public class UpdateDialog extends DialogFragment implements View.OnClickListener
String version = this.versionInfo.getvNumber();
String name = String.format("nafmii-%s.apk", version);
File file = new File(FileUtils.getSysDownLoadDir(), name);
if (file.exists() && BuildConfig.DEBUG) {
updateProgress(100);
CtxUtils.installApk(getActivity(), file.getAbsolutePath());
isInstall = true;
return;
}
// if (file.exists() && BuildConfig.DEBUG) {
// updateProgress(100);
// CtxUtils.installApk(getActivity(), file.getAbsolutePath());
// isInstall = true;
// return;
// }
OkhttpApi.doDownload(url, file, new OkhttpApi.IDownListener() {
@Override
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!