commit | be78258e5530613a56bb9d7c3b4a31a5d248ba85 | [log] [tgz] |
---|---|---|
author | Jeff Sharkey <jsharkey@android.com> | Mon Feb 15 18:35:57 2016 -0700 |
committer | Jeff Sharkey <jsharkey@android.com> | Mon Feb 15 18:36:01 2016 -0700 |
tree | 2b05cb86bcaac079e1215d27cfbfd4cd0c7515fd | |
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