Commit 6b911e9d authored by fallenstardust's avatar fallenstardust

重置资源时删除损坏的字体再复制

parent 0b649f7a
...@@ -278,6 +278,9 @@ public class MainActivity extends HomeActivity { ...@@ -278,6 +278,9 @@ public class MainActivity extends HomeActivity {
IOUtils.copyFilesFromAssets(this, getDatapath(Constants.CORE_SKIN_PATH), IOUtils.copyFilesFromAssets(this, getDatapath(Constants.CORE_SKIN_PATH),
AppsSettings.get().getCoreSkinPath(), false); AppsSettings.get().getCoreSkinPath(), false);
String fonts = AppsSettings.get().getResourcePath() + "/" + Constants.FONT_DIRECTORY;
if (new File(fonts).list() != null)
FileUtils.delFile(fonts);
IOUtils.copyFilesFromAssets(this, getDatapath(Constants.FONT_DIRECTORY), IOUtils.copyFilesFromAssets(this, getDatapath(Constants.FONT_DIRECTORY),
AppsSettings.get().getFontDirPath(), true); AppsSettings.get().getFontDirPath(), true);
/* /*
......
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