修复ACache读多行文本未换行问题

This commit is contained in:
zlzw 2023-04-12 13:15:33 +08:00
parent 0506d82165
commit 58c988a83a

View File

@ -22,6 +22,7 @@ import android.graphics.Canvas;
import android.graphics.PixelFormat; import android.graphics.PixelFormat;
import android.graphics.drawable.BitmapDrawable; import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable; import android.graphics.drawable.Drawable;
import android.util.Log;
import org.json.JSONArray; import org.json.JSONArray;
import org.json.JSONObject; import org.json.JSONObject;
@ -160,7 +161,7 @@ public class ACache {
String readString = ""; String readString = "";
String currentLine; String currentLine;
while ((currentLine = in.readLine()) != null) { while ((currentLine = in.readLine()) != null) {
readString += currentLine; readString += currentLine+"\n";
} }
if (!Utils.isDue(readString)) { if (!Utils.isDue(readString)) {
return Utils.clearDateInfo(readString); return Utils.clearDateInfo(readString);