修复清理缓存后查看日志时会导致APP崩溃的问题

This commit is contained in:
lyswhut 2023-11-11 12:11:02 +08:00
parent 13d910e638
commit a9c6099337
2 changed files with 2 additions and 0 deletions

View File

@ -40,6 +40,7 @@ public class Utils {
// https://stackoverflow.com/a/13357785
public static String getStringFromFile (String filePath) throws Exception {
File fl = new File(filePath);
if (!fl.exists()) return "";
FileInputStream fin = new FileInputStream(fl);
String ret = convertStreamToString(fin);
//Make sure you close all streams.

View File

@ -13,6 +13,7 @@
### 修复
- 修复主题背景覆盖不全的问题
- 修复清理缓存后查看日志时会导致APP崩溃的问题
### 其他