diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-04-28 17:37:48 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-04-28 17:37:48 -0700 |
commit | 459abcb9dfc85fc0d1413639148e21f8fb773be3 (patch) | |
tree | 41d29ad4a138bd64e9e7ecda118e2ec8408f9f67 /src | |
parent | 0232fb2571054f5174602b35d1870b5d38c9356b (diff) | |
download | dsub-459abcb9dfc85fc0d1413639148e21f8fb773be3.tar.gz dsub-459abcb9dfc85fc0d1413639148e21f8fb773be3.tar.bz2 dsub-459abcb9dfc85fc0d1413639148e21f8fb773be3.zip |
Revert SD Card change, needs more testing
Diffstat (limited to 'src')
-rw-r--r-- | src/github/daneren2005/dsub/util/FileUtil.java | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/github/daneren2005/dsub/util/FileUtil.java b/src/github/daneren2005/dsub/util/FileUtil.java index e9c5444b..e8516aa4 100644 --- a/src/github/daneren2005/dsub/util/FileUtil.java +++ b/src/github/daneren2005/dsub/util/FileUtil.java @@ -315,11 +315,7 @@ public class FileUtil { public static File getDefaultMusicDirectory(Context context) { if(DEFAULT_MUSIC_DIR == null) { File[] dirs = ContextCompat.getExternalFilesDirs(context, null); - if(Util.isExternalStoragePresent()) { - DEFAULT_MUSIC_DIR = new File(dirs[dirs.length - 1], "music"); - } else { - DEFAULT_MUSIC_DIR = new File(context.getExternalFilesDir(null), "music"); - } + DEFAULT_MUSIC_DIR = new File(dirs[dirs.length - 1], "music"); if (!DEFAULT_MUSIC_DIR.exists() && !DEFAULT_MUSIC_DIR.mkdirs()) { Log.e(TAG, "Failed to create default dir " + DEFAULT_MUSIC_DIR); } |