Merge "Check for null application context in UserManager." into tm-qpr-dev
This commit is contained in:
@@ -1971,7 +1971,8 @@ public class UserManager {
|
|||||||
/** @hide */
|
/** @hide */
|
||||||
public UserManager(Context context, IUserManager service) {
|
public UserManager(Context context, IUserManager service) {
|
||||||
mService = service;
|
mService = service;
|
||||||
mContext = context.getApplicationContext();
|
Context appContext = context.getApplicationContext();
|
||||||
|
mContext = (appContext == null ? context : appContext);
|
||||||
mUserId = context.getUserId();
|
mUserId = context.getUserId();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user