Skip to content

Commit 0772007

Browse files
author
Jeff Brown
committed
Fix copyStringToBuffer row index calculation.
Bug: 5515552 Change-Id: I60aa25d2becd3195d6997d23ef5654a31e93bf71
1 parent 6091225 commit 0772007

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/java/android/database/CursorWindow.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ public void copyStringToBuffer(int row, int column, CharArrayBuffer buffer) {
478478
}
479479
acquireReference();
480480
try {
481-
nativeCopyStringToBuffer(mWindowPtr, row, column, buffer);
481+
nativeCopyStringToBuffer(mWindowPtr, row - mStartPos, column, buffer);
482482
} finally {
483483
releaseReference();
484484
}

0 commit comments

Comments
 (0)