diff options
author | daneren2005 <daneren2005@gmail.com> | 2013-06-21 11:04:01 -0600 |
---|---|---|
committer | daneren2005 <daneren2005@gmail.com> | 2013-06-21 11:04:01 -0600 |
commit | 192dc02a27c712859c7c4b6f04736c11ec1b22ed (patch) | |
tree | 34c695d2198a33cf9655075893ad34d26fac0f30 /subsonic-android | |
parent | c245eabd55a1238379f48966879aa02889ec254e (diff) | |
download | dsub-192dc02a27c712859c7c4b6f04736c11ec1b22ed.tar.gz dsub-192dc02a27c712859c7c4b6f04736c11ec1b22ed.tar.bz2 dsub-192dc02a27c712859c7c4b6f04736c11ec1b22ed.zip |
Close #140 Use file instead of folder
Diffstat (limited to 'subsonic-android')
-rw-r--r-- | subsonic-android/src/github/daneren2005/dsub/activity/SettingsActivity.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/activity/SettingsActivity.java b/subsonic-android/src/github/daneren2005/dsub/activity/SettingsActivity.java index e40ecab8..dbb25c65 100644 --- a/subsonic-android/src/github/daneren2005/dsub/activity/SettingsActivity.java +++ b/subsonic-android/src/github/daneren2005/dsub/activity/SettingsActivity.java @@ -331,7 +331,7 @@ public class SettingsActivity extends PreferenceActivity implements SharedPrefer private void setHideMedia(boolean hide) { File nomediaDir = new File(FileUtil.getSubsonicDirectory(), ".nomedia"); if (hide && !nomediaDir.exists()) { - if (!nomediaDir.mkdir()) { + if (!nomediaDir.createNewFile()) { Log.w(TAG, "Failed to create " + nomediaDir); } } else if (nomediaDir.exists()) { @@ -478,4 +478,4 @@ public class SettingsActivity extends PreferenceActivity implements SharedPrefer screen.setTitle(serverName.getText()); } } -}
\ No newline at end of file +} |