From 6aaeba20d21adf1973af153fb15753801097e62a Mon Sep 17 00:00:00 2001 From: Bjorn Bringert Date: Wed, 22 Jul 2009 21:26:29 +0100 Subject: [PATCH] Remove background padding workaround from SuggestionsAdapter Romain has checked in a framework fix, https://android-git.corp.google.com/g/8218 so the workaround added in https://android-git.corp.google.com/g/8209 is no longer needed. Fixes http://b/issue?id=1996635 --- core/java/android/app/SuggestionsAdapter.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/core/java/android/app/SuggestionsAdapter.java b/core/java/android/app/SuggestionsAdapter.java index 4cd35a4379f8c..54061aefd76cd 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; }