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;