new tile management

This commit is contained in:
Philipp Schaefer
2013-12-21 17:09:34 +01:00
parent 1e0e687b71
commit fa89fc67d8
6 changed files with 144 additions and 13 deletions

View File

@ -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();
}
}
}