diff --git a/libs/androidfw/AssetManager2.cpp b/libs/androidfw/AssetManager2.cpp index a545b3d5e1341..8c2a632b9fd7d 100644 --- a/libs/androidfw/AssetManager2.cpp +++ b/libs/androidfw/AssetManager2.cpp @@ -1041,9 +1041,7 @@ base::expected AssetManager2::ResolveBag( base::expected AssetManager2::GetBag(uint32_t resid) const { std::vector 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 AssetManager2::GetBag(