修正媒体扫描错误
This commit is contained in:
1 parent
12412d67fb
commit
67884ed9d3
1 file changed
+2
-5
@@ -352,10 +352,7 @@ public class SettingsActivity extends AbstractPreferenceActivity {
|
||||
} else {
|
||||
try {
|
||||
nomedia.createNewFile();
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
return false;
|
||||
}
|
||||
} catch (IOException e) {}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -422,7 +419,7 @@ public class SettingsActivity extends AbstractPreferenceActivity {
|
||||
|
||||
// Update .nomedia file
|
||||
// TODO Should I delete .nomedia in old download dir ?
|
||||
if (Config.getMediaScan()) {
|
||||
if (!Config.getMediaScan()) {
|
||||
try {
|
||||
new File(Config.getDownloadPath(), ".nomedia").createNewFile();
|
||||
} catch (IOException e) {
|
||||
|
||||
Reference in new issue
Block a user