diff options
author | Scott Jackson <daneren2005@gmail.com> | 2016-03-14 17:55:22 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2016-03-14 17:55:22 -0700 |
commit | b9eadfc8f873c35ddd2a4632ec37e6b384e7b21f (patch) | |
tree | 46c3403a83ebba8a4b0850d5d34511f15ea76b2d | |
parent | d7806c61e528d5752fa335ea2bc8c818c586f3b9 (diff) | |
download | dsub-b9eadfc8f873c35ddd2a4632ec37e6b384e7b21f.tar.gz dsub-b9eadfc8f873c35ddd2a4632ec37e6b384e7b21f.tar.bz2 dsub-b9eadfc8f873c35ddd2a4632ec37e6b384e7b21f.zip |
Fix possible bug with nomedia dir creation
-rw-r--r-- | app/src/main/java/github/daneren2005/dsub/fragments/SettingsFragment.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/github/daneren2005/dsub/fragments/SettingsFragment.java b/app/src/main/java/github/daneren2005/dsub/fragments/SettingsFragment.java index fc436a61..b2ac715a 100644 --- a/app/src/main/java/github/daneren2005/dsub/fragments/SettingsFragment.java +++ b/app/src/main/java/github/daneren2005/dsub/fragments/SettingsFragment.java @@ -638,7 +638,7 @@ public class SettingsFragment extends PreferenceCompatFragment implements Shared } catch(Exception e) { Log.w(TAG, "Failed to create " + musicNoMedia, e); } - } else if (nomediaDir.exists()) { + } else if (!hide && nomediaDir.exists()) { if (!nomediaDir.delete()) { Log.w(TAG, "Failed to delete " + nomediaDir); } |