From 3ca59dc0e920a02165fd3b0c39ec2ead07e67ef6 Mon Sep 17 00:00:00 2001 From: Silin Huang Date: Thu, 13 May 2021 02:07:53 -0700 Subject: [PATCH] Make wallet screen scrollable in landscape mode. Also added test cases for cards with bad informations to prevent crash; change the wallet tile label to use the one fetched from QAW API, with a fallback static string in SysUI. see demo: https://drive.google.com/file/d/1Pu39KJTbQNJ2ABV__fVfdnNu9V_XlOsn/view?usp=sharing&resourcekey=0-WJgX6aUZTy9j3QWHfz3mjg Test: atest Test: manual Bug: 187970998 Change-Id: I5c073989a9db959eba324b693c04e46a0b96d6b2 --- .../SystemUI/res/layout/wallet_fullscreen.xml | 94 ++++++++++--------- .../qs/tiles/QuickAccessWalletTile.java | 10 +- .../wallet/ui/WalletScreenController.java | 10 +- .../qs/tiles/QuickAccessWalletTileTest.java | 12 ++- .../wallet/ui/WalletScreenControllerTest.java | 83 ++++++++++++++++ 5 files changed, 158 insertions(+), 51 deletions(-) diff --git a/packages/SystemUI/res/layout/wallet_fullscreen.xml b/packages/SystemUI/res/layout/wallet_fullscreen.xml index d365aa3414931..aceefeecad5a9 100644 --- a/packages/SystemUI/res/layout/wallet_fullscreen.xml +++ b/packages/SystemUI/res/layout/wallet_fullscreen.xml @@ -22,60 +22,67 @@ android:layout_height="match_parent" android:clipChildren="false"> + android:id="@+id/action_bar" + style="?android:attr/actionBarStyle" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:background="@android:color/transparent" + android:navigationContentDescription="@null" /> - - - - - -