Commit 0d02da1b authored by fallenstardust's avatar fallenstardust

低安卓版本改为copyFile

parent 5e5c45b2
......@@ -131,7 +131,7 @@ public class GameUriManager {
activity.startActivity(startdeck);
} else if (file.getName().toLowerCase(Locale.US).endsWith(".ypk")) {
try {
FileUtils.moveFile(file.getAbsolutePath(), AppsSettings.get().getExpansionsPath().toString(), false);
FileUtils.copyDir(file.getAbsolutePath(), AppsSettings.get().getExpansionsPath().toString(), true);
if (!AppsSettings.get().isReadExpansions()) {
activity.startActivity(startSeting);
Toast.makeText(activity, R.string.ypk_go_setting, Toast.LENGTH_LONG).show();
......
......@@ -83,7 +83,7 @@ public class StringManager implements Closeable {
if (line.startsWith("#") || (!line.startsWith(PRE_SYSTEM) && !line.startsWith(PRE_SETNAME))) {
continue;
}
String[] words = line.split("[\t| ]+");
String[] words = line.split("[\t ]+");
//
if (words.length >= 3) {
if (PRE_SETNAME.equals(words[0])) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment