File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
library/src/main/java/com/qiniu/android Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ public final class Config {
7878 /**
7979 * dns缓存信息目录
8080 */
81- public static String dnscacheDir = Environment . getExternalStorageDirectory () + File . separator + "dnschache" + File . separator ;
81+ public static String dnscacheDir = ContextGetter . applicationContext (). getCacheDir (). getAbsolutePath () + "/qiniu/dnsCache/" ;
8282
8383 /**
8484 * preQuery host
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ public class DnsCacheFile implements Recorder {
2020 public DnsCacheFile (String directory ) throws IOException {
2121 this .directory = directory ;
2222 f = new File (directory );
23- if (f .isDirectory () || !f .exists ()) {
23+ if (! f .isDirectory () || !f .exists ()) {
2424 boolean r = f .mkdirs ();
2525 if (!r ) {
2626 throw new IOException ("mkdir failed" );
You can’t perform that action at this time.
0 commit comments