summaryrefslogtreecommitdiffstats
path: root/core/java/android/os/FileObserver.java
diff options
context:
space:
mode:
authorBjorn Bringert <bringert@android.com>2009-07-22 19:13:39 +0100
committerBjorn Bringert <bringert@android.com>2009-07-22 19:13:39 +0100
commit8051172a285a4b5926186e40d1c7942a93c4eb15 (patch)
tree286aabb8eaeb8e21424472fb85d635195cbdc8e4 /core/java/android/os/FileObserver.java
parentaa0e47cbd6ccada9d194f39e6b4372d2d3594b38 (diff)
downloadframeworks_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