commit | 859002985e0e5d73f54c942f2024607431db60fc | [log] [tgz] |
---|---|---|
author | Mathew Inwood <mathewi@google.com> | Wed Apr 16 14:17:39 2014 +0100 |
committer | Mathew Inwood <mathewi@google.com> | Wed Apr 16 14:17:39 2014 +0100 |
tree | db3c1972f66828de1da82b2b8b18d038c1465074 | |
parent | 1a1fdf4185637610b37953e901605c55ef8ba0a6 [diff] |
Take account of bounds set on drag drawables. If bounds are set on a compound drawable in a textview, drawing it into a bitmap set to the intrinsic size of the drawable results in it being scaled down in the top corner. Scaling it down again into the grid icon size then gives a tiny icon. Use the drawable bounds if any are set, otherwise use the intrinsic size. Bug: 14103508 Change-Id: Idadd7bb891dc33d092eb9ceb3025b9a5d9e1bfd8