Merge "Docs: Added mention that the getSharedPreferences method is thread safe." into oc-dev

am: fb839ce59a

Change-Id: Ic135f510c6e5ff8a9a00f2d2be1fcc0c284dd5cf
This commit is contained in:
Jon Dormody
2017-12-01 16:07:27 +00:00
committed by android-build-merger

View File

@@ -754,6 +754,8 @@ public abstract class Context {
* to any callers for the same name, meaning they will see each other's
* edits as soon as they are made.
*
* This method is thead-safe.
*
* @param name Desired preferences file. If a preferences file by this name
* does not exist, it will be created when you retrieve an
* editor (SharedPreferences.edit()) and then commit changes (Editor.commit()).