Merge commit '43e9eb28ab9a246472149384567f505434f492a3' into eclair-mr2-plus-aosp * commit '43e9eb28ab9a246472149384567f505434f492a3': Fix build.
This commit is contained in:
@ -32,21 +32,21 @@ public class BridgeAssetManager extends AssetManager {
|
|||||||
* {@link Bridge} calls this method after setting up a new bridge.
|
* {@link Bridge} calls this method after setting up a new bridge.
|
||||||
*/
|
*/
|
||||||
/*package*/ static AssetManager initSystem() {
|
/*package*/ static AssetManager initSystem() {
|
||||||
if (!(AssetManager.mSystem instanceof BridgeAssetManager)) {
|
if (!(AssetManager.sSystem instanceof BridgeAssetManager)) {
|
||||||
// Note that AssetManager() creates a system AssetManager and we override it
|
// Note that AssetManager() creates a system AssetManager and we override it
|
||||||
// with our BridgeAssetManager.
|
// with our BridgeAssetManager.
|
||||||
AssetManager.mSystem = new BridgeAssetManager();
|
AssetManager.sSystem = new BridgeAssetManager();
|
||||||
AssetManager.mSystem.makeStringBlocks(false);
|
AssetManager.sSystem.makeStringBlocks(false);
|
||||||
}
|
}
|
||||||
return AssetManager.mSystem;
|
return AssetManager.sSystem;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Clears the static {@link AssetManager#mSystem} to make sure we don't leave objects
|
* Clears the static {@link AssetManager#sSystem} to make sure we don't leave objects
|
||||||
* around that would prevent us from unloading the library.
|
* around that would prevent us from unloading the library.
|
||||||
*/
|
*/
|
||||||
/*package*/ static void clearSystem() {
|
/*package*/ static void clearSystem() {
|
||||||
AssetManager.mSystem = null;
|
AssetManager.sSystem = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
private BridgeAssetManager() {
|
private BridgeAssetManager() {
|
||||||
|
Reference in New Issue
Block a user