OSDN Git Service

Fix layout height for suggestion tile.
authorDoris Ling <dling@google.com>
Wed, 7 Mar 2018 23:04:11 +0000 (15:04 -0800)
committerDoris Ling <dling@google.com>
Wed, 7 Mar 2018 23:04:11 +0000 (15:04 -0800)
commit8f5773b8340efee5fdadd020ae01c54f04593a80
tree3cf4e50bc76a9b03717b0a653602fe50b6e84f96
parentd9eba6b8567cbc6cd98c418ae0b79ca4a7d42960
Fix layout height for suggestion tile.

- set minHeight instead of using a fix height, so that when the
font/display size is set to larger, the height will expand accordingly
to fit all elements in the suggestion card.

- revert the change that tint all suggestion icons. The previous logic
should be used to determine if we should tint the icon or not.

Change-Id: I2451490130cee216ff65301a600eb91d2e65c321
Fixes: 74261827
Test: visual and make RunSettingsRoboTests
res/layout/suggestion_tile.xml
res/layout/suggestion_tile_with_button.xml
src/com/android/settings/dashboard/suggestions/SuggestionAdapter.java
tests/robotests/src/com/android/settings/dashboard/suggestions/SuggestionAdapterTest.java