update:2020.12.25
fix:新后台对接完成 add:
This commit is contained in:
@@ -17,7 +17,7 @@ import java.util.Map;
|
||||
/**
|
||||
* 作者 mjsheng
|
||||
* 日期 2018/10/9 18:41
|
||||
* 邮箱 278359328@qq.com
|
||||
* 邮箱 501802639@qq.com
|
||||
* 来自:
|
||||
*/
|
||||
|
||||
@@ -86,22 +86,23 @@ public class SPUtils {
|
||||
SharedPreferencesCompat.apply(editor);
|
||||
}
|
||||
|
||||
/**
|
||||
* 清除所有数据
|
||||
*/
|
||||
public static void clear(Context context) {
|
||||
SharedPreferences sp = context.getSharedPreferences(FILE_NAME,
|
||||
Context.MODE_PRIVATE);
|
||||
SharedPreferences.Editor editor = sp.edit();
|
||||
editor.clear();
|
||||
SharedPreferencesCompat.apply(editor);
|
||||
reductFirstEnter(context);
|
||||
}
|
||||
// /**
|
||||
// * 清除所有数据
|
||||
// */
|
||||
// public static void clear(Context context) {
|
||||
// SharedPreferences sp = context.getSharedPreferences(FILE_NAME,
|
||||
// Context.MODE_PRIVATE);
|
||||
// SharedPreferences.Editor editor = sp.edit();
|
||||
// editor.clear();
|
||||
// SharedPreferencesCompat.apply(editor);
|
||||
// reductFirstEnter(context);
|
||||
// }
|
||||
|
||||
// //还原状态firstEnter信息
|
||||
// private static void reductFirstEnter(Context context){
|
||||
// put(context, CommonDatas.FLAG_FIRST_ENTER,CommonDatas.FLAG_FIRST_ENTER);
|
||||
// }
|
||||
|
||||
//还原状态firstEnter信息
|
||||
private static void reductFirstEnter(Context context){
|
||||
put(context, CommonData.FLAG_FIRST_ENTER,CommonData.FLAG_FIRST_ENTER);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询某个key是否已经存在
|
||||
|
||||
Reference in New Issue
Block a user