private void doUpdate() { AppLockApplication appLockApplication = AppLockApplication.getInstance(); if (System.currentTimeMillis() - SharedPreferenceUtil.readUpdateTipTime() >= 1000 * 60 * 60 * 20 && appLockApplication.hasNewVersion()) { downLoadFileUrl = appLockApplication.getUpdateVersionUrl(); showUpdateDialog(appLockApplication.getUpdateVersionIntro()); SharedPreferenceUtil.editUpdateTipTime(System.currentTimeMillis()); } }
void checkVersion() { AppLockApplication appLockApplication = AppLockApplication.getInstance(); if (appLockApplication.hasNewVersion()) { downLoadFileUrl = appLockApplication.getUpdateVersionUrl(); showUpdateDialog(appLockApplication.getUpdateVersionIntro()); } else { ToastUtils.showToast(R.string.no_new_version); } }
public void checkVersion() { if (appLockApplication.hasNewVersion()) { downLoadFileUrl = appLockApplication.getUpdateVersionUrl(); showUpdateDialog(appLockApplication.getUpdateVersionIntro()); } }