From 733da72412bb7b8cc10a9312e15f7d49caecf190 Mon Sep 17 00:00:00 2001 From: d34d Date: Mon, 11 May 2015 11:43:41 -0700 Subject: Remove resources.apk from ZipSet when removing overlay When a theme that is currently applied is updated, the resources.apk prior to the update remains in the AssetManager ZipSet and is still used when loading themed assets. This patch removes the resources.apk from the ZipSet so that the new one can be correctly loaded in. Change-Id: Ia0b415a3598779825090f365581d374bf51c812d REF: THEMES-639 --- include/androidfw/AssetManager.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/androidfw/AssetManager.h b/include/androidfw/AssetManager.h index 0fbf766..13f7951 100644 --- a/include/androidfw/AssetManager.h +++ b/include/androidfw/AssetManager.h @@ -379,6 +379,8 @@ private: void addOverlay(const String8& path, const asset_path& overlay); bool getOverlay(const String8& path, size_t idx, asset_path* out) const; + + void closeZip(const String8& zip); private: void closeZip(int idx); -- cgit v1.1