diff options
| author | Adam Lesinski <adamlesinski@google.com> | 2014-12-02 22:52:36 +0000 |
|---|---|---|
| committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2014-12-02 22:52:37 +0000 |
| commit | e89a286541e242ad96705fcdd1fe2c6a9eafb4a0 (patch) | |
| tree | c55e1a0c4cc7a2c22c4bb4dfa190a2fb38f6a3df /core/java | |
| parent | acd01ff07668a608cb4890a2ea1533a2397149c8 (diff) | |
| parent | 96198ebae8deab14b434645f628213db492abdbc (diff) | |
Merge changes If2c7e09f,Ie21f227c
* changes:
RRO idmap: pad with 0xffffffff, not 0x00000000
RRO: reintroduce lost ResTable insert of assets
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/content/res/AssetManager.java | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/core/java/android/content/res/AssetManager.java b/core/java/android/content/res/AssetManager.java index e57882240e56..72f24d3e4ee8 100644 --- a/core/java/android/content/res/AssetManager.java +++ b/core/java/android/content/res/AssetManager.java @@ -627,7 +627,21 @@ public final class AssetManager implements AutoCloseable { * * {@hide} */ - public native final int addOverlayPath(String idmapPath); + + public final int addOverlayPath(String idmapPath) { + synchronized (this) { + int res = addOverlayPathNative(idmapPath); + makeStringBlocks(mStringBlocks); + return res; + } + } + + /** + * See addOverlayPath. + * + * {@hide} + */ + public native final int addOverlayPathNative(String idmapPath); /** * Add multiple sets of assets to the asset manager at once. See |
