commit | da5774624b1ecf2554d8492e174930d246ec94ee | [log] [tgz] |
---|---|---|
author | Jay Shrauner <shrauner@google.com> | Fri May 23 11:10:09 2014 -0700 |
committer | Jay Shrauner <shrauner@google.com> | Fri May 23 11:25:18 2014 -0700 |
tree | d58f548d093d7f4a21595053b00e9610ee4cb6d8 | |
parent | 17f2d60a0fa76dec836b7bda60a029fe5c40356a [diff] |
Catch 0 width/height scaled Bitmap sizes Change getNormalizedBitmap to catch attempts to scale bitmap to 0 width or height (which would throw an uncaught IllegalArgumentException) and instead throw an IOException, which is caught and handled by the higher level code. Bug:15189759 Change-Id: Ifb23d0b0d4e1c2e8038b472840a464194fbfa800