From ac335c8dad34c989d8026bcddbdfc8e12b30ebd6 Mon Sep 17 00:00:00 2001 From: MonoIith Date: Fri, 27 Nov 2015 23:03:48 -0500 Subject: [PATCH] Reintroduce lost ResTable insert of assets [2&3/3] Properly add overlay packages into the AssetManager, and insert them into the ResTable. Ie21f227c654c98730f74a687d0e16ee2b80e747e --- libs/androidfw/AssetManager.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libs/androidfw/AssetManager.cpp b/libs/androidfw/AssetManager.cpp index 7b467194ed3..8f4c705566c 100644 --- a/libs/androidfw/AssetManager.cpp +++ b/libs/androidfw/AssetManager.cpp @@ -298,8 +298,7 @@ bool AssetManager::addOverlayPath(const String8& packagePath, int32_t* cookie) *cookie = static_cast(mAssetPaths.size()); if (mResources != NULL) { - size_t index = mAssetPaths.size() - 1; - appendPathToResTable(oap, &index); + appendPathToResTable(oap); } return true;