commit | e0d03a006b73fe0da479df90e4f780337e0d54ad | [log] [tgz] |
---|---|---|
author | Riddle Hsu <riddlehsu@google.com> | Tue May 17 16:10:47 2022 +0800 |
committer | Riddle Hsu <riddlehsu@google.com> | Tue May 17 21:48:13 2022 +0800 |
tree | 84401c27d23dbfcea6f15cd9ffc078cb8c267dda | |
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