|
|
|
@ -115,6 +115,7 @@ public class Settings extends AppCompatActivity {
|
|
|
|
|
try {
|
|
|
|
|
standaloneDatabaseProvider = new StandaloneDatabaseProvider(getApplicationContext());
|
|
|
|
|
SimpleCache.delete(new File(getApplicationContext().getFilesDir(), "media"), standaloneDatabaseProvider);
|
|
|
|
|
SimpleCache.delete(new File(getApplicationContext().getExternalFilesDirs(null)[getApplicationContext().getExternalFilesDirs(null).length-1], "media"), standaloneDatabaseProvider);
|
|
|
|
|
standaloneDatabaseProvider.close();
|
|
|
|
|
Toast.makeText(getApplicationContext(),getResources().getString(R.string.clearcache_ok), Toast.LENGTH_SHORT).show();
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|