Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 11939657 authored by Android (Google) Code Review's avatar Android (Google) Code Review Committed by Android Git Automerger
Browse files

am 0b1a255f: Merge change 8228 into donut

Merge commit '0b1a255f'

* commit '0b1a255f':
  Remove background padding workaround from SuggestionsAdapter
parents 1186bb1e 0b1a255f
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -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;
        }