summaryrefslogtreecommitdiffstats
path: root/libs/androidfw/AssetManager.cpp
diff options
context:
space:
mode:
authorMÃ¥rten Kongstad <marten.kongstad@sonymobile.com>2014-11-07 10:52:17 +0100
committerZoran Jovanovic <zoran.jovanovic@sonymobile.com>2014-11-07 16:07:42 +0100
commit30113131fb958850ef92c6a8f7f2aa2ed92a8ffe (patch)
treed6d1d9b3c5bbc4e67caaf67e7c967ebd0a4cbe0f /libs/androidfw/AssetManager.cpp
parent840796a3c29183a6f9bcf3d50ecae45405b63d88 (diff)
downloadframeworks_base-30113131fb958850ef92c6a8f7f2aa2ed92a8ffe.zip
frameworks_base-30113131fb958850ef92c6a8f7f2aa2ed92a8ffe.tar.gz
frameworks_base-30113131fb958850ef92c6a8f7f2aa2ed92a8ffe.tar.bz2
RRO: reintroduce lost ResTable insert of assets
With the recent introduction of AssetManager::appendPathToResTable, overlay packages were not properly added to the AssetManager, and once added, were not properly inserted into the ResTable. Bug: 17765434 Change-Id: Ie21f227c654c98730f74a687d0e16ee2b80e747e
Diffstat (limited to 'libs/androidfw/AssetManager.cpp')
-rw-r--r--libs/androidfw/AssetManager.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/androidfw/AssetManager.cpp b/libs/androidfw/AssetManager.cpp
index de6a33c..a1f7858 100644
--- a/libs/androidfw/AssetManager.cpp
+++ b/libs/androidfw/AssetManager.cpp
@@ -296,6 +296,10 @@ bool AssetManager::addOverlayPath(const String8& packagePath, int32_t* cookie)
mAssetPaths.add(oap);
*cookie = static_cast<int32_t>(mAssetPaths.size());
+ if (mResources != NULL) {
+ appendPathToResTable(oap);
+ }
+
return true;
}