OSDN Git Service

Small cleanup or DataStore API javadoc.
authorFilip Pavlis <pavlis@google.com>
Mon, 13 Mar 2017 16:58:24 +0000 (16:58 +0000)
committerFilip Pavlis <pavlis@google.com>
Tue, 14 Mar 2017 15:08:04 +0000 (15:08 +0000)
commitee3bc34c3aba340399b3b5aaa7688d92e476ec32
tree08531032501cb70c885f2a7b0e7d247334102d43
parent77aac13d33cb8c2c4f57ba01654d6d2c4e7b044f
Small cleanup or DataStore API javadoc.

There is also change in PreferenceManager.getSharedPreferences. The
original was not always returning null in case mPreferenceDataStore is
not null. That was contradictory with the java doc and conufing during
the runtime. Added tests for it.

Test: Separate CTS (2) being submitted along this one, see the topic.
Bug: b/34322039
Change-Id: I78a6758a674c3c8139bbe66ec17f2e29ca847828
core/java/android/preference/Preference.java
core/java/android/preference/PreferenceManager.java