The cache in ApplicationsState is causing a lot of damage because AS object is not smart enough to invalidate the cache in all conditions. So we end up having bugs like stale app label or icon in weird cases. This change stops using the cache when loading app icon in entity headres. This is only a stop gap solution to fix most visible (and most frequently complained) parts of the page. We still need to address the cache in ApplicationsState eventually. Change-Id: Iea88ad99d4069d678d09943cfb0b0e5c94eb3326 Fixes: 79881693 Test: robotests
Running Settings Robolectric tests
The full suite
$ croot
$ make RunSettingsRoboTests
Running a single test class
$ croot
$ make RunSettingsRoboTests ROBOTEST_FILTER=<ClassName>
For example:
make RunSettingsRoboTests ROBOTEST_FILTER=CodeInspectionTest
You can also use partial class name in ROBOTEST_FILTER. If the partial class name matches multiple file names, all of them will be executed.