From 6f76741252d5eb06705b0b1b3d70ebafce704036 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Tue, 1 Apr 2014 18:33:02 -0700 Subject: Use the more stringent check for cache location change --- src/github/daneren2005/dsub/activity/SettingsActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/github') diff --git a/src/github/daneren2005/dsub/activity/SettingsActivity.java b/src/github/daneren2005/dsub/activity/SettingsActivity.java index f26b9347..afd6cb30 100644 --- a/src/github/daneren2005/dsub/activity/SettingsActivity.java +++ b/src/github/daneren2005/dsub/activity/SettingsActivity.java @@ -503,7 +503,7 @@ public class SettingsActivity extends PreferenceActivity implements SharedPrefer private void setCacheLocation(String path) { File dir = new File(path); - if (!FileUtil.ensureDirectoryExistsAndIsReadWritable(dir)) { + if (!FileUtil.verifyCanWrite(dir)) { Util.toast(this, R.string.settings_cache_location_error, false); // Reset it to the default. -- cgit v1.2.3