Brad Fitzpatrick
dd644c179c
Fallback to SharedPreferences$Editor.commit() when no apply() exists.
...
Gingerbread widened the SharedPreferences.Editor interface, adding an
apply() method. Most people don't implement this interface
themselves, but a couple apps do.
A few spots in the core framework take a SharedPreferences[.Editor]
from apps, which might be a pre-Gingerbread implementation without an
apply() method. This patch makes sure we never depend on the presence
of an apply() method, falling back to commit() if apply() isn't
available.
Change-Id: I32693ac9227a60b694526a26a30234fb17a40581
2010-10-10 15:26:24 -07:00
..
2010-10-07 18:48:22 -07:00
2010-09-30 17:24:34 -07:00
2010-09-16 13:38:25 -04:00
2009-12-10 10:37:52 -08:00
2009-11-13 13:53:39 -08:00
2010-02-22 11:27:52 -08:00
2010-09-26 21:31:47 -07:00
2009-12-10 10:37:52 -08:00
2010-03-09 15:20:21 -08:00
2010-09-16 13:38:25 -04:00
2009-11-13 13:53:39 -08:00
2010-09-26 21:31:47 -07:00
2010-05-19 09:36:55 -07:00
2010-03-23 11:20:45 -07:00
2010-09-28 22:36:27 -07:00
2010-02-09 14:20:55 -08:00
2010-03-30 17:31:52 -07:00
2010-01-15 11:35:06 -08:00
2009-12-10 10:37:52 -08:00
2010-03-30 17:31:52 -07:00
2010-04-08 13:25:46 -07:00
2010-03-05 12:08:39 -08:00
2010-03-30 17:31:52 -07:00
2009-11-13 13:53:39 -08:00
2009-07-21 11:16:54 -07:00
2010-09-08 12:37:18 -07:00
2010-02-25 11:39:33 -08:00
2009-07-21 11:16:54 -07:00
2010-06-04 10:09:13 -07:00
2009-11-13 13:53:39 -08:00
2009-05-20 11:28:04 -07:00
2009-11-13 13:53:39 -08:00
2010-01-08 15:11:38 -08:00
2010-02-05 15:16:20 -08:00
2010-02-05 15:16:20 -08:00
2010-10-10 15:26:24 -07:00
2010-03-04 11:52:14 -08:00
2009-11-13 13:53:39 -08:00
2009-11-13 13:53:39 -08:00
2009-11-13 13:53:39 -08:00
2010-03-30 17:31:52 -07:00
2010-03-30 17:31:52 -07:00
2010-09-13 17:12:51 -07:00
2010-08-05 17:26:58 -07:00
2010-03-30 18:31:27 -07:00
2010-04-27 11:21:53 -07:00
2010-04-27 11:21:53 -07:00
2009-05-20 11:28:04 -07:00
2010-02-05 15:16:20 -08:00
2009-11-13 13:53:39 -08:00
2010-10-06 14:27:34 -07:00
2009-05-20 11:28:04 -07:00