From 6e6455518c77ce7148123311737821ed22c7576f Mon Sep 17 00:00:00 2001 From: Alison Cichowlas Date: Fri, 23 Jul 2021 14:55:09 -0400 Subject: [PATCH] Sharesheet: remove 2 separators, restyle the 3rd. Test: Manual Bug: 178619070 Change-Id: I9a6797863be2d0220fb71b2b9ca1d04c1f279b02 --- .../com/android/internal/app/ChooserActivity.java | 6 ------ core/res/res/drawable/chooser_row_layer_list.xml | 6 ++++-- core/res/res/layout/chooser_az_label_row.xml | 11 +++-------- 3 files changed, 7 insertions(+), 16 deletions(-) diff --git a/core/java/com/android/internal/app/ChooserActivity.java b/core/java/com/android/internal/app/ChooserActivity.java index 93d0d02f5a9f7..786af5f0823e5 100644 --- a/core/java/com/android/internal/app/ChooserActivity.java +++ b/core/java/com/android/internal/app/ChooserActivity.java @@ -3454,8 +3454,6 @@ public class ChooserActivity extends ResolverActivity implements private View createProfileView(ViewGroup parent) { View profileRow = mLayoutInflater.inflate(R.layout.chooser_profile_row, parent, false); - profileRow.setBackground( - getResources().getDrawable(R.drawable.chooser_row_layer_list, null)); mProfileView = profileRow.findViewById(R.id.profile_button); mProfileView.setOnClickListener(ChooserActivity.this::onProfileClick); updateProfileViewButton(); @@ -3601,10 +3599,6 @@ public class ChooserActivity extends ResolverActivity implements final ViewGroup viewGroup = (ViewGroup) holder.itemView; int start = getListPosition(position); int startType = getRowType(start); - if (viewGroup.getForeground() == null && position > 0) { - viewGroup.setForeground( - getResources().getDrawable(R.drawable.chooser_row_layer_list, null)); - } int columnCount = holder.getColumnCount(); int end = start + columnCount - 1; diff --git a/core/res/res/drawable/chooser_row_layer_list.xml b/core/res/res/drawable/chooser_row_layer_list.xml index 080081521ddf2..f5ba1e9d633bd 100644 --- a/core/res/res/drawable/chooser_row_layer_list.xml +++ b/core/res/res/drawable/chooser_row_layer_list.xml @@ -17,9 +17,11 @@ */ --> - + - + + + diff --git a/core/res/res/layout/chooser_az_label_row.xml b/core/res/res/layout/chooser_az_label_row.xml index 1b733fc907cc1..baf07cec98755 100644 --- a/core/res/res/layout/chooser_az_label_row.xml +++ b/core/res/res/layout/chooser_az_label_row.xml @@ -15,17 +15,12 @@ ~ limitations under the License --> - -