commit | 348398d7f3ff058248ef9f7d37443496c0e400a5 | [log] [tgz] |
---|---|---|
author | Andy Huang <ath@google.com> | Tue May 28 13:31:36 2013 -0700 |
committer | Andy Huang <ath@google.com> | Tue May 28 13:31:36 2013 -0700 |
tree | 0715cd515f90ef0213d04a3967ba66dbf2f89f10 | |
parent | f8b613c1103952ae5cc1f8a5e6ae60aa62d73dec [diff] |
fix getItemId crash on empty cursors getItem() is usually not called from within getItemId(). Turns out this is not a great combo, because getItemId() must handle any input, but getItem() doesn't. Switch to using Cursor.moveToPosition() directly so zero- sized cursors trigger the default CursorAdapter.getItemId() codepath. Bug: 9167831 Change-Id: Ie46572eea69b8dec7e4aba3d76d3c841c4f98c46