rework a lot of preferences
This commit is contained in:
parent
491b01406a
commit
5346c66f9a
14 changed files with 61 additions and 70 deletions
|
|
@ -19,11 +19,11 @@ public class CustomGlideModule implements GlideModule {
|
|||
@Override
|
||||
public File getCacheDirectory() {
|
||||
String folder = "/Gelli/images";
|
||||
return PreferenceUtil.getInstance(App.getInstance()).getImagesExternalDirectory()
|
||||
return PreferenceUtil.getInstance(App.getInstance()).getExternalDirectory()
|
||||
? new File(Environment.getExternalStorageDirectory() + folder)
|
||||
: new File(App.getInstance().getApplicationInfo().dataDir + folder);
|
||||
}
|
||||
}, PreferenceUtil.getInstance(App.getInstance()).getImagesCacheSize()));
|
||||
}, PreferenceUtil.getInstance(App.getInstance()).getCacheSize()));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue