fix missing pdnsd.conf in 1.3.3, close #8

This commit is contained in:
Max Lv
2013-03-13 19:05:43 +08:00
parent f4bc091538
commit 04d6bbaa3b
3 changed files with 8 additions and 4 deletions
+5 -1
View File
@@ -117,7 +117,11 @@ public class Shadowsocks extends PreferenceActivity implements
InputStream in = null;
OutputStream out = null;
try {
in = assetManager.open(path + "/" + file);
if (path.length() > 0) {
in = assetManager.open(path + "/" + file);
} else {
in = assetManager.open(file);
}
out = new FileOutputStream("/data/data/com.github.shadowsocks/"
+ file);
copyFile(in, out);