commit | 794cf190aa38dffdad9e82fc86dbd94940b175b1 | [log] [tgz] |
---|---|---|
author | Michael Wright <michaelwr@google.com> | Wed Jan 18 18:12:53 2017 +0000 |
committer | Michael Wright <michaelwr@google.com> | Thu Jan 19 16:19:28 2017 +0000 |
tree | cb8247ae67ead35b99206e4c16213ad70926f114 | |
parent | 7a1f1d8a8579278048c044b7aca5d0d58ece57e4 [diff] |
Also parse "1" as true for ContentValues#getAsBoolean SQLite's internal representation for booleans is an integer with a value of 0 or 1, so without this check, boolean values obtained via DatabaseUtils#cursorRowToContentValues will always return false. Bug: 34365384 Test: demo app, cts Change-Id: I6c0829c992252ca5ee16bd5eac48668507fd4089