diff options
| author | 2020-11-16 23:08:18 +0000 | |
|---|---|---|
| committer | 2020-11-17 23:02:22 +0000 | |
| commit | b5cd4cc2d96390eaeb509051010b02bfb55ad7d5 (patch) | |
| tree | f9e7bb9625d3cb0e0e958114ee71a16779b9dc3c /libs/androidfw/AssetManager2.cpp | |
| parent | 016f9e65e4d8de58ff07b067a3c0328fda9ee5be (diff) | |
Revert^2 "Do not cache bag parent stack until requested"
06a7331b84ceb4b39d39e4af187d1f988475893a
Change-Id: Ib1db7cafd40408af248c9cda0c2ffaec065ef606
Diffstat (limited to 'libs/androidfw/AssetManager2.cpp')
| -rw-r--r-- | libs/androidfw/AssetManager2.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libs/androidfw/AssetManager2.cpp b/libs/androidfw/AssetManager2.cpp index a545b3d5e134..8c2a632b9fd7 100644 --- a/libs/androidfw/AssetManager2.cpp +++ b/libs/androidfw/AssetManager2.cpp @@ -1041,9 +1041,7 @@ base::expected<const ResolvedBag*, NullOrIOError> AssetManager2::ResolveBag( base::expected<const ResolvedBag*, NullOrIOError> AssetManager2::GetBag(uint32_t resid) const { std::vector<uint32_t> found_resids; - const auto bag = GetBag(resid, found_resids); - cached_bag_resid_stacks_.emplace(resid, found_resids); - return bag; + return GetBag(resid, found_resids); } base::expected<const ResolvedBag*, NullOrIOError> AssetManager2::GetBag( |