summaryrefslogtreecommitdiffstats
path: root/telephony/java/android
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2011-07-17 13:42:47 -0700
committerDianne Hackborn <hackbod@google.com>2011-07-17 13:49:27 -0700
commitde4c26fa1a5adf3efa8995cbf69e45aa10111b8f (patch)
tree429ae3f3fae98156613d89fdb86b7d2c418443b8 /telephony/java/android
parent9cbf8e270d4fd581c2e8bc7d9fc913de766bf242 (diff)
downloadframeworks_base-de4c26fa1a5adf3efa8995cbf69e45aa10111b8f.zip
frameworks_base-de4c26fa1a5adf3efa8995cbf69e45aa10111b8f.tar.gz
frameworks_base-de4c26fa1a5adf3efa8995cbf69e45aa10111b8f.tar.bz2
Fix a couple static leaks.
Change-Id: If2564dc822fbcb3bb3baf270ad2b3c29c78bf421
Diffstat (limited to 'telephony/java/android')
-rw-r--r--telephony/java/android/telephony/TelephonyManager.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/telephony/java/android/telephony/TelephonyManager.java b/telephony/java/android/telephony/TelephonyManager.java
index 66120a1..f7e0c66 100644
--- a/telephony/java/android/telephony/TelephonyManager.java
+++ b/telephony/java/android/telephony/TelephonyManager.java
@@ -61,7 +61,7 @@ public class TelephonyManager {
/** @hide */
public TelephonyManager(Context context) {
if (sContext == null) {
- sContext = context;
+ sContext = context.getApplicationContext();
sRegistry = ITelephonyRegistry.Stub.asInterface(ServiceManager.getService(
"telephony.registry"));