Closed fluxtah closed 11 years ago
Add updateXXX methods to update preferences using commit() instantly, this adds only convenience.
rather than going:
QuxPreferences.getInstance().edit().putSomething("hello, world").commit()
its better to
QuxPreferences.getInstance().updateSomething("hello, world");
Which only really is optimal for single preference updates (which is quite common in my code base).
Add updateXXX methods to update preferences using commit() instantly, this adds only convenience.
rather than going:
QuxPreferences.getInstance().edit().putSomething("hello, world").commit()
its better to
QuxPreferences.getInstance().updateSomething("hello, world");
Which only really is optimal for single preference updates (which is quite common in my code base).