diff options
| author | Darryl L Johnson <darryljohnson@google.com> | 2020-08-26 12:25:50 -0700 |
|---|---|---|
| committer | Darryl L Johnson <darryljohnson@google.com> | 2020-09-01 14:54:46 -0700 |
| commit | eb039cc64e51636a9775fead645981d9b03e01aa (patch) | |
| tree | 2942172370b4f33f908c4db1f935933c72de3509 /docs/html/sdk/api_diff/24/changes | |
| parent | 51412036df7cc7a5cefd9bf5aed0f56cb880b98f (diff) | |
Prevent DecorContext from creating DisplayContext for default display.
The previous implementation of createDisplayContext() was essentially a
noop within ResourcesManager when the default display was passed. However,
the current implementation always overrides the configuration with the provided
display's metrics so when a DecorContext with the default display is
created a new ResourcesImpl object is also created due to the difference in
configuration. This CL changes the DecorContext logic to match the
previous implemenation where the configuration is only overriden for a
non-default display thus only creating a new ResourcesImpl object for
non-default displays.
Bug: 166174272
Test: atest google/perf/app-startup/benchmark-app-hermetic/cold-dropcache-test -v
Test: atest com.android.internal.policy.DecorContextTest
Change-Id: I05920c4f7987ffcaec8b197e8636606c04b418d4
Diffstat (limited to 'docs/html/sdk/api_diff/24/changes')
0 files changed, 0 insertions, 0 deletions
