diff options
-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 +} |