Sharesheet - Make ripples consistent

There were differences in ripple behavior depending on the list row
background. Modify this so the ripples propogate against the same
parent background. Make copy button style match the work profile style.

Bug: 129979196
Test: Visual inspection
Change-Id: I51f1b7503c2169bd03f04edecf98927850e6582b
This commit is contained in:
Matt Pietal
2019-05-01 12:32:47 -04:00
parent ec0bd2981f
commit 84a55bd5eb
2 changed files with 3 additions and 3 deletions

View File

@@ -2871,10 +2871,10 @@ public class ChooserActivity extends ResolverActivity {
if (startType != lastStartType
|| rowPosition == getContentPreviewRowCount() + getProfileRowCount()) {
row.setBackground(
row.setForeground(
getResources().getDrawable(R.drawable.chooser_row_layer_list, null));
} else {
row.setBackground(null);
row.setForeground(null);
}
int columnCount = holder.getColumnCount();

View File

@@ -60,7 +60,7 @@
android:minWidth="48dp"
android:minHeight="48dp"
android:clickable="true"
android:background="?android:attr/selectableItemBackgroundBorderless">
style="?attr/borderlessButtonStyle">
<ImageView
android:layout_width="24dp"