summaryrefslogtreecommitdiff
path: root/libs/androidfw/ApkParsing.cpp
diff options
context:
space:
mode:
author Michael Mikhail <michaelmikhil@google.com> 2023-03-02 23:54:07 +0000
committer Michael Mikhail <michaelmikhil@google.com> 2023-03-22 14:31:42 +0000
commit65c796644b54c936dd453face51686af27135c13 (patch)
tree79101c5810406402b6d90d5a29a91382f03895fd /libs/androidfw/ApkParsing.cpp
parent03f1bb5062b4c4214b5a400c0b6d9e97db880a0b (diff)
Adjust the number of recommendations according to display size
We currently have 3 recommendations to show in the card. When the display size gets bigger, the 3 recommendation covers cannot fit in the media carousel. So we calculate the width of the screen compared to the the default width of media controls. Then we get min(3, available width / cover) as the number of recommendations that can be visibile. Added changes to title/subtitle visibility that were missing from collapsed layout. Bug: 267295550 Test: atest MediaControlPanelTest Test: checked recommendation card in both expanded and collapsed layouts. And tried all combinations of display/text sizes. Change-Id: Ic047c020fd91f9ed835619fe14748a7a40132798
Diffstat (limited to 'libs/androidfw/ApkParsing.cpp')
0 files changed, 0 insertions, 0 deletions