Merge "Don't store a static instance of UserManager"
This commit is contained in:
committed by
Android (Google) Code Review
commit
8f18dd4dfa
@@ -533,14 +533,9 @@ public class UserManager {
|
||||
/** @hide */
|
||||
public static final int PIN_VERIFICATION_SUCCESS = -1;
|
||||
|
||||
private static UserManager sInstance = null;
|
||||
|
||||
/** @hide */
|
||||
public synchronized static UserManager get(Context context) {
|
||||
if (sInstance == null) {
|
||||
sInstance = (UserManager) context.getSystemService(Context.USER_SERVICE);
|
||||
}
|
||||
return sInstance;
|
||||
public static UserManager get(Context context) {
|
||||
return (UserManager) context.getSystemService(Context.USER_SERVICE);
|
||||
}
|
||||
|
||||
/** @hide */
|
||||
|
||||
Reference in New Issue
Block a user