diff options
| author | 2022-06-13 18:04:24 +0200 | |
|---|---|---|
| committer | 2022-06-13 18:09:55 +0200 | |
| commit | f045e972ece97e188bc5191acec727cbb354b4bd (patch) | |
| tree | f01934fe24e9ddb82f2426c8113222feea6e45ea /libs/androidfw/StringPool.cpp | |
| parent | 9607932ce9e3bde1fd193b33e7ea177ced3c4fcc (diff) | |
[Motion] Split-shade expansion: shorten the required drag down amount to fully expand shade
Before, the drag down amount required to fully expand the shade was the entire height of the screen.
Changes:
- Changes the required drag amount distance to a static value in resources. Then uses this value in Npvc#calculatePanelHeightQsExpanded. This then is used to compute the expansion fraction, which is used downstream almost everywhere.
- For the scrim, instead of using the fraction, we introduce another static drag down amount distance value in resources. This is to make sure the timing looks a little better and avoid having a fully black screen when expanding.
Test: Manually
Test: Unit tests
Bug: 214946307
Bug: 229726547
Fixes: 229997327
Change-Id: I3bb21225860b5d49c1b8f15427c9dd85bdbb8c84
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions