diff options
author | Jeff Sharkey <jsharkey@android.com> | 2016-02-15 18:35:57 -0700 |
---|---|---|
committer | Jeff Sharkey <jsharkey@android.com> | 2016-02-15 18:36:01 -0700 |
commit | be78258e5530613a56bb9d7c3b4a31a5d248ba85 (patch) | |
tree | 2b05cb86bcaac079e1215d27cfbfd4cd0c7515fd /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | 115d2c189a46f535778d9dd0923f703ff2f888fe (diff) |
Add path cache to avoid SharedPreferences jank.
The old getSharedPreferences() API had a side-effect behavior that
subsequent calls wouldn't touch disk if there was a cache hit. Now
that we're using File as the cache key, we were generating the path
every time, which resulted in touching disk.
To bring back the old behavior, let's add yet another cache!
Bug: 26979210
Change-Id: Ib8346c6f69ae25f8f164e3b7e05bc6358de38906
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions