commit | 76dc52ac36cfbe86ccc62e72fd9094bff2c42df0 | [log] [tgz] |
---|---|---|
author | Robin Lee <rgl@google.com> | Thu Jan 04 17:50:18 2018 +0100 |
committer | Robin Lee <rgl@google.com> | Thu Jan 04 16:55:24 2018 +0000 |
tree | 7234c5f42a2de390cd67b9c6b757b86861e9c86b | |
parent | ec397abf931a39ed1c3d36f0af4ee9a68b883b07 [diff] |
Fix small but crashy edge case in Icon.scaleDown Plus a regression test which throws an Exception for the old version. It shouldn't be an issue in the real world because there's absolutely no reason any app should be creating 1920*3px icons. Found while porting the code somewhere else. Test: runtest -x ./core/tests/coretests/src/android/graphics/drawable/IconTest.java Change-Id: I1283d982507221914ddad1313e16f63af13e245a