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

Commit 3836cce0 authored by Beverly's avatar Beverly Committed by android-build-merger
Browse files

Merge "Adjusted chooser padding so 2nd line isn't cutoff." into oc-mr1-dev

am: 58020265

Change-Id: Ic2bb95c7230ea25646824f41d219b09d3cb70709
parents 1ed40b42 58020265
Loading
Loading
Loading
Loading
+9 −4
Original line number Diff line number Diff line
@@ -1450,12 +1450,17 @@ public class ChooserActivity extends ResolverActivity {
                        getFirstRowPosition(rowPosition + 1));
                int serviceSpacing = holder.row.getContext().getResources()
                        .getDimensionPixelSize(R.dimen.chooser_service_spacing);
                if (rowPosition == 0 && nextStartType != ChooserListAdapter.TARGET_SERVICE) {
                    // if the row is the only row for target service
                    setVertPadding(holder, 0, 0);
                } else {
                    int top = rowPosition == 0 ? serviceSpacing : 0;
                    if (nextStartType != ChooserListAdapter.TARGET_SERVICE) {
                        setVertPadding(holder, top, serviceSpacing);
                    } else {
                        setVertPadding(holder, top, 0);
                    }
                }
            } else {
                holder.row.setBackgroundColor(Color.TRANSPARENT);
                int lastStartType = mChooserListAdapter.getPositionTargetType(