From 08d5b8fad8d46ccb64db2fdcb4d66972ec87bf48 Mon Sep 17 00:00:00 2001 From: Dianne Hackborn Date: Wed, 4 Aug 2010 11:12:40 -0700 Subject: More native work. Implement save/restore of state, and add native APIs for configuration information. Change-Id: I2a3ddc2ba605db58d7c8b2b31b9215fb323f90b5 --- libs/utils/AssetManager.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libs') diff --git a/libs/utils/AssetManager.cpp b/libs/utils/AssetManager.cpp index 60a0d82..e09e755 100644 --- a/libs/utils/AssetManager.cpp +++ b/libs/utils/AssetManager.cpp @@ -232,6 +232,12 @@ void AssetManager::setConfiguration(const ResTable_config& config, const char* l } } +void AssetManager::getConfiguration(ResTable_config* outConfig) const +{ + AutoMutex _l(mLock); + *outConfig = *mConfig; +} + /* * Open an asset. * -- cgit v1.1