diff options
author | Scott Jackson <daneren2005@gmail.com> | 2013-06-22 10:59:26 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2013-06-22 10:59:26 -0700 |
commit | fb06f7357048d654ccc70282c12368f86378f7fd (patch) | |
tree | a668a811fece0b708aaedf1c862fc562efb8cf1b /subsonic-android | |
parent | 6e14f332abb5e0128dc19ea4bbe86b8fe8c742ff (diff) | |
parent | 192dc02a27c712859c7c4b6f04736c11ec1b22ed (diff) | |
download | dsub-fb06f7357048d654ccc70282c12368f86378f7fd.tar.gz dsub-fb06f7357048d654ccc70282c12368f86378f7fd.tar.bz2 dsub-fb06f7357048d654ccc70282c12368f86378f7fd.zip |
Merge branch 'master' of https://github.com/daneren2005/Subsonic.git
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 +} |