Add warning before cleaning redundancy
This commit is contained in:
1 parent
0a2c442b75
commit
938c1a2e88
7 files changed
+99
-66
No files matched your search
@@ -41,7 +41,6 @@ public final class Config {
|
||||
|
||||
private static boolean mInit = false;
|
||||
|
||||
private static Context mContext;
|
||||
private static SharedPreferences mConfigPre;
|
||||
|
||||
/**
|
||||
@@ -54,8 +53,7 @@ public final class Config {
|
||||
return;
|
||||
mInit = true;
|
||||
|
||||
mContext = context;
|
||||
mConfigPre = PreferenceManager.getDefaultSharedPreferences(mContext);
|
||||
mConfigPre = PreferenceManager.getDefaultSharedPreferences(context);
|
||||
|
||||
if (Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)) {
|
||||
sExternalDir = new File(Environment.getExternalStorageDirectory(), EXTERANL_DIR_NAME);
|
||||
|
||||
Reference in new issue
Block a user