Files
packages_apps_Settings/tests/robotests/src/com/android/settings
Yi-Ling Chuang 228bc78bf9 [DO NOT MERGE] Pre-allocate height for contextual cards.
To prevent the UI jank causing by the async card loads, we pre-allocate
some space for the card to fill in. After this change, only one card can
be shown at a time.

More details:
- When the card number configuration is set to 0, don't trigger the card
loader.
- The height adjusting logic is as follows.
When Settings is opened, pre-allocate a space first.
After the RV finish laying out, reset the RV to wrap_content. So if the
card has to be expanded(eg. wifi large mode or dismissal view), then it
will adjust the height accordingly. While if a card previously shown
becomes unavailable(dismissed or conditions not meet), we also reset the
RV so the space can be gone.

Bug: 163288869
Test: robotest
Change-Id: I0dcb2dae8f0533e562ad06f664b7ae7a9afecd21
2020-08-12 21:40:06 +08:00
..
2020-05-04 17:22:01 +08:00
2020-06-18 16:25:38 -04:00
2020-06-24 10:55:31 +08:00
2020-07-09 11:57:27 -07:00
2020-04-01 20:13:59 +08:00
2020-03-12 19:21:36 +08:00
2020-03-11 18:18:36 +08:00