Misc ui tweaks.

- Update conditional card layout
  - move action button from right side to bottom.
  - Get rid of the forking between small/big screens.

- Update a few icons

Fixes: 121189136
Fixes: 124315564
Fixes: 124316920

Test: visual
Change-Id: I205d9995a2d7ed06ad9d32f3cea74f2840a28aed
This commit is contained in:
Fan Zhang
2019-02-12 12:29:49 -08:00
parent 7946eee850
commit 07207c0113
23 changed files with 113 additions and 174 deletions

View File

@@ -449,14 +449,14 @@ public class SliceBuilderUtils {
int iconResource = data.getIconResource();
if (iconResource == 0) {
iconResource = R.drawable.ic_settings;
iconResource = R.drawable.ic_settings_accent;
}
try {
return IconCompat.createWithResource(context, iconResource);
} catch (Exception e) {
Log.w(TAG, "Falling back to settings icon because there is an error getting slice icon "
+ data.getUri(), e);
return IconCompat.createWithResource(context, R.drawable.ic_settings);
return IconCompat.createWithResource(context, R.drawable.ic_settings_accent);
}
}
}