summaryrefslogtreecommitdiff
path: root/docs/html/sdk/api_diff/24/changes
diff options
context:
space:
mode:
authorPhilip P. Moltmann <moltmann@google.com>2016-12-13 16:23:21 -0800
committerPhilip P. Moltmann <moltmann@google.com>2016-12-14 00:56:03 +0000
commit31d6889f4c89dd8498e2095f9d8a3c39fbd17c86 (patch)
tree6c535b630b5b0f6a37d0a70815d0f1d40ff8e93f /docs/html/sdk/api_diff/24/changes
parent3a39fe6bed33f8f28ac0ffe447057af9ab962a3f (diff)
Only persist last Shared Preferences state
If multiple async shared preferences writes are queued, all but the last one can be ignored as they will be overwritten by the last one anyway. For commit() we need to make sure that we have at least persisted the state of the commit. Generation counts are 64 bit, hence they never overflow. Test: Produced a lot of SharedPreferences.Editor.apply and did not see excessive writes anymore, ran SharedPreferences CTS tests Bug: 33385963 Change-Id: I3968ed4b71befee6eeb90bea1666a0bb646544f6
Diffstat (limited to 'docs/html/sdk/api_diff/24/changes')
0 files changed, 0 insertions, 0 deletions