修复ACache读多行文本未换行问题
This commit is contained in:
parent
0506d82165
commit
58c988a83a
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user