diff options
author | Android (Google) Code Review <android-gerrit@google.com> | 2009-07-22 13:31:20 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2009-07-22 13:31:20 -0700 |
commit | 0b1a255f736851342016e657ba6ccf096a9497ea (patch) | |
tree | 8f4f4939943da0242422206a024c94113830841d /core/java | |
parent | ae1ba650074ab7b9a73f4430c1fc3576a8199383 (diff) | |
parent | 6aaeba20d21adf1973af153fb15753801097e62a (diff) | |
download | frameworks_base-0b1a255f736851342016e657ba6ccf096a9497ea.zip frameworks_base-0b1a255f736851342016e657ba6ccf096a9497ea.tar.gz frameworks_base-0b1a255f736851342016e657ba6ccf096a9497ea.tar.bz2 |
Merge change 8228 into donut
* changes:
Remove background padding workaround from SuggestionsAdapter
Diffstat (limited to 'core/java')
-rw-r--r-- | core/java/android/app/SuggestionsAdapter.java | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/core/java/android/app/SuggestionsAdapter.java b/core/java/android/app/SuggestionsAdapter.java index 4cd35a4..54061ae 100644 --- a/core/java/android/app/SuggestionsAdapter.java +++ b/core/java/android/app/SuggestionsAdapter.java @@ -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; } |