reduce cursor size back to 4m; now that the cause is fixed
This commit is contained in:
parent
cc79d8f6b3
commit
8a5d658b2a
|
@ -11,7 +11,7 @@ public class CursorUtils {
|
||||||
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.P) {
|
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.P) {
|
||||||
if (cursor instanceof AbstractWindowedCursor) {
|
if (cursor instanceof AbstractWindowedCursor) {
|
||||||
final AbstractWindowedCursor windowedCursor = (AbstractWindowedCursor) cursor;
|
final AbstractWindowedCursor windowedCursor = (AbstractWindowedCursor) cursor;
|
||||||
windowedCursor.setWindow(new CursorWindow("4M", 8 * 1024 * 1024));
|
windowedCursor.setWindow(new CursorWindow("4M", 4 * 1024 * 1024));
|
||||||
}
|
}
|
||||||
if (cursor instanceof SQLiteCursor) {
|
if (cursor instanceof SQLiteCursor) {
|
||||||
((SQLiteCursor) cursor).setFillWindowForwardOnly(true);
|
((SQLiteCursor) cursor).setFillWindowForwardOnly(true);
|
||||||
|
|
Loading…
Reference in New Issue