diff options
| author | 2023-06-21 12:54:30 +0000 | |
|---|---|---|
| committer | 2023-06-22 20:11:23 +0000 | |
| commit | bd670dd9d5d6774fffb469c64ade55ac9c4dbf79 (patch) | |
| tree | d9c22fdbede4790e6de7f5395a31c7aedd424977 /libs/androidfw/FileStream.cpp | |
| parent | 66f3f48e5281451024a0f08cc06f7b2bf69e8d6e (diff) | |
Replace WallpaperData File fields with methods
WallpaperData objects do not need to store File objects directly. There
are 4 wallpaper files per user, and since File objects are immutable in
java we can keep a global reference of them. WallpaperData objects can
retrieve the right files using their mWhich and userId fields.
Doing so prevents ending up in weird states, e.g. if the mWhich flag
changes but not the wallpaperFile or cropFile.
Test: atest WallpaperManagerTest
Test: atest WallpaperManagerServiceTests
Bug: 286909680
Change-Id: I4cf9fc6311238d94213c4af3c6fb8beed9fc9023
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions