diff options
author | Michael Wright <michaelwr@google.com> | 2017-01-18 18:12:53 +0000 |
---|---|---|
committer | Michael Wright <michaelwr@google.com> | 2017-01-19 16:19:28 +0000 |
commit | 794cf190aa38dffdad9e82fc86dbd94940b175b1 (patch) | |
tree | cb8247ae67ead35b99206e4c16213ad70926f114 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
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
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions