summaryrefslogtreecommitdiff
path: root/libs/androidfw/tests/BenchmarkHelpers.cpp
diff options
context:
space:
mode:
authorAdam Lesinski <adamlesinski@google.com>2018-01-23 03:17:26 -0800
committerAdam Lesinski <adamlesinski@google.com>2018-01-23 03:17:26 -0800
commit7fb38311361390e24d7e43ce1eb220faccd251ff (patch)
treec4e6dc480cb292306aa2dc3a481b51df983bbc08 /libs/androidfw/tests/BenchmarkHelpers.cpp
parent68d10d00a52be904766d69acda98bc934e768e7f (diff)
Revert "Replace AssetManager with AssetManager2 implementation"
This reverts commit b20a0ce59f59cb5ec857748e056cc341dbd13b92.
Diffstat (limited to 'libs/androidfw/tests/BenchmarkHelpers.cpp')
-rw-r--r--libs/androidfw/tests/BenchmarkHelpers.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/androidfw/tests/BenchmarkHelpers.cpp b/libs/androidfw/tests/BenchmarkHelpers.cpp
index a8abcb5df86c..7149beef797f 100644
--- a/libs/androidfw/tests/BenchmarkHelpers.cpp
+++ b/libs/androidfw/tests/BenchmarkHelpers.cpp
@@ -33,12 +33,12 @@ void GetResourceBenchmarkOld(const std::vector<std::string>& paths, const ResTab
}
}
- // Make sure to force creation of the ResTable first, or else the configuration doesn't get set.
- const ResTable& table = assetmanager.getResources(true);
if (config != nullptr) {
assetmanager.setConfiguration(*config);
}
+ const ResTable& table = assetmanager.getResources(true);
+
Res_value value;
ResTable_config selected_config;
uint32_t flags;