diff options
| author | 2022-05-17 16:10:47 +0800 | |
|---|---|---|
| committer | 2022-05-17 21:48:13 +0800 | |
| commit | e0d03a006b73fe0da479df90e4f780337e0d54ad (patch) | |
| tree | 84401c27d23dbfcea6f15cd9ffc078cb8c267dda /libs/androidfw/StringPool.cpp | |
| parent | 6cfafc4b2bfcf95d2e9f7a16a4116e31d30ded4c (diff) | |
Align the size calculation of task configuration
Since [1], screen dp size is rounded as px/density+0.5f.
So the task configuration should use the same calculation
for consistency. Which also avoids triggering unnecessary
1dp diff configuration change.
[1]: I8f78d9bd14b7fb9d12a20a662ad4ec04f82ce7f2
Bug: 204481252
Test: TaskTests#testComputeConfigResourceOverrides
Change-Id: I0fcd661551f38ce7f336b1319de5ae34826838a2
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions