commit | 67fed01522ad26c850b20d2c960e4d392dc401d1 | [log] [tgz] |
---|---|---|
author | Brad Fitzpatrick <bradfitz@android.com> | Tue Aug 17 10:29:15 2010 -0700 |
committer | Brad Fitzpatrick <bradfitz@android.com> | Tue Aug 17 10:29:15 2010 -0700 |
tree | ba6efc9b322dadcb4520548dee4f276328716fb4 | |
parent | b3e957bb9d3a3811412e5d94233c7f7e2e777c28 [diff] |
Avoid unnecessary SharedPrefences disk writes. Apps commonly edit + commit redundant changes to their SharedPreferences, not checking the existing values. Rather than force all apps to double-check that their settings writes aren't redundant, we should just make .commit() faster (avoiding the disk write) when the file already exists on disk and no effective changes were made. Change-Id: I7edbd0d3ace5b69b7af6d12c39797c8b7f86230b