new tile management
This commit is contained in:
@ -20,4 +20,13 @@ public class IITC_Application extends Application {
|
||||
return super.getCacheDir();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public File getFilesDir() {
|
||||
if (PreferenceManager.getDefaultSharedPreferences(this).getBoolean("pref_external_storage", false)) {
|
||||
return (getExternalFilesDir(null) != null) ? getExternalFilesDir(null) : super.getFilesDir();
|
||||
} else {
|
||||
return super.getFilesDir();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user