summaryrefslogtreecommitdiff
path: root/opengl/libagl/state.cpp
diff options
context:
space:
mode:
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
commit8051172a285a4b5926186e40d1c7942a93c4eb15 (patch)
tree286aabb8eaeb8e21424472fb85d635195cbdc8e4 /opengl/libagl/state.cpp
parentaa0e47cbd6ccada9d194f39e6b4372d2d3594b38 (diff)
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 'opengl/libagl/state.cpp')
0 files changed, 0 insertions, 0 deletions