commit | 08c75e4c49c071f372491ea03ca2d3ff50139c8f | [log] [tgz] |
---|---|---|
author | Fyodor Kupolov <fkupolov@google.com> | Thu Oct 27 18:21:47 2016 +0000 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Thu Oct 27 18:21:49 2016 +0000 |
tree | 41bdad366668a54d2b4a7444211f015851384de9 | |
parent | 09c7a38755b43058c8cdf2ee35a3e466b1f302f8 [diff] | |
parent | 5200e1cb07190a1f6874d72a4561064cad3ee3e0 [diff] |
Merge "Use app context to avoid memory leaks"
diff --git a/core/java/android/os/UserManager.java b/core/java/android/os/UserManager.java index bc5af81..15dd282 100644 --- a/core/java/android/os/UserManager.java +++ b/core/java/android/os/UserManager.java
@@ -726,7 +726,7 @@ /** @hide */ public UserManager(Context context, IUserManager service) { mService = service; - mContext = context; + mContext = context.getApplicationContext(); } /**