Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 2e457d31 authored by sangyun's avatar sangyun
Browse files

Change the resource cache key and limit the maximum size of cache

Change the key valus of ResoucesCache. Key contains package name and
configuration of resources.
Even the same context object can return different resources depending
on its state, such as language changes. So a Configuration that can
logically distinguish whether a resource is logically equal can be
used as a key. (context does not have localical equals for resources)
Also, since unique resources can be used for each package, package
name is added as a resource cache key.

Bug: 289045241
Test: atest CtsTelephonyTestCases
Test: atest CellBroadcastServiceTests
Change-Id: I492d314b4f1e1e83554bc098c3a41a9574e2ac6b
parent 3e40c03c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment