diff options
author | Bjorn Bringert <bringert@android.com> | 2009-07-22 19:13:39 +0100 |
---|---|---|
committer | Bjorn Bringert <bringert@android.com> | 2009-07-22 19:13:39 +0100 |
commit | 8051172a285a4b5926186e40d1c7942a93c4eb15 (patch) | |
tree | 286aabb8eaeb8e21424472fb85d635195cbdc8e4 /core/java/android/os/FileObserver.java | |
parent | aa0e47cbd6ccada9d194f39e6b4372d2d3594b38 (diff) | |
download | frameworks_base-8051172a285a4b5926186e40d1c7942a93c4eb15.zip frameworks_base-8051172a285a4b5926186e40d1c7942a93c4eb15.tar.gz frameworks_base-8051172a285a4b5926186e40d1c7942a93c4eb15.tar.bz2 |
Work around StateListDrawable padding in search suggestions
Sometimes when searching, some of the suggestions had no left padding.
The left-hand side icons were flush with the left edge of the screen.
The problems was that setting a StateListDrawable as a background
will always set the padding of a View, because of a problem in
DrawableContainer.
DrawableContainer.DrawableContainerState.getConstantPadding()
will always return a Rect if mVariablePadding is false, which
makes DrawableContainer.getPadding() return true, which
causes View to change the padding.
As a workaround, we use setVariablePadding(true) on the background
that we create.
Fixes http://b/editIssue?id=1984813
Diffstat (limited to 'core/java/android/os/FileObserver.java')
0 files changed, 0 insertions, 0 deletions