From 192dc02a27c712859c7c4b6f04736c11ec1b22ed Mon Sep 17 00:00:00 2001 From: daneren2005 Date: Fri, 21 Jun 2013 11:04:01 -0600 Subject: Close #140 Use file instead of folder --- .../src/github/daneren2005/dsub/activity/SettingsActivity.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'subsonic-android') 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 +} -- cgit v1.2.3