问答-推荐增加推荐关注完成
This commit is contained in:
@ -124,11 +124,11 @@ public class UpdateManager {
|
||||
md5 = MD5Utils.getUpdateMD5(appEntity.getUrl(), appEntity.getContent());
|
||||
} else if (!"NEVER".equals(appEntity.getAlert())) { // 一天提示一次
|
||||
SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(mContext);
|
||||
String showUpdateTime = sp.getString("show_update_tiem", null);
|
||||
String showUpdateTime = sp.getString("show_update_time", null);
|
||||
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd", Locale.getDefault());
|
||||
String today = format.format(new Date());
|
||||
if (!today.equals(showUpdateTime)) {
|
||||
sp.edit().putString("show_update_tiem", today).apply();
|
||||
sp.edit().putString("show_update_time", today).apply();
|
||||
md5 = MD5Utils.getUpdateMD5(appEntity.getUrl(), appEntity.getContent());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user