OSDN Git Service

Take account of bounds set on drag drawables.
authorMathew Inwood <mathewi@google.com>
Wed, 16 Apr 2014 13:17:39 +0000 (14:17 +0100)
committerMathew Inwood <mathewi@google.com>
Wed, 16 Apr 2014 13:17:39 +0000 (14:17 +0100)
commit859002985e0e5d73f54c942f2024607431db60fc
treedb3c1972f66828de1da82b2b8b18d038c1465074
parent1a1fdf4185637610b37953e901605c55ef8ba0a6
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
src/com/android/launcher3/Workspace.java