Merge change 8228 into donut

* changes:
  Remove background padding workaround from SuggestionsAdapter
This commit is contained in:
Android (Google) Code Review
2009-07-22 13:31:20 -07:00

View File

@ -360,10 +360,6 @@ class SuggestionsAdapter extends ResourceCursorAdapter {
newBg.addState(new int[]{android.R.attr.state_selected}, transparent);
newBg.addState(new int[]{android.R.attr.state_pressed}, transparent);
newBg.addState(new int[]{}, background);
// Workaround for the fact that StateListDrawable.getPadding(Rect) always returns
// true, and thus sets the padding of any view that has it as a background.
((DrawableContainer.DrawableContainerState) newBg.getConstantState())
.setVariablePadding(true);
mBackgroundsCache.put(backgroundColor, newBg.getConstantState());
return newBg;
}