From 914c5591baeb86bf30a5bc28930071442a822d60 Mon Sep 17 00:00:00 2001 From: Ben Murdoch Date: Mon, 1 Aug 2011 13:58:47 +0100 Subject: Cache the application context instead of Activity. When storing a reference to a Context, ensure that it's the Application context rather than Activity Context. Bug: 5084293 Change-Id: Ib0be5f8ceb91846bb985d0813a8f22cabd44eaf8 --- src/com/android/browser/SystemAllowGeolocationOrigins.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/com/android/browser/SystemAllowGeolocationOrigins.java') diff --git a/src/com/android/browser/SystemAllowGeolocationOrigins.java b/src/com/android/browser/SystemAllowGeolocationOrigins.java index a01541f66..e0759ade7 100644 --- a/src/com/android/browser/SystemAllowGeolocationOrigins.java +++ b/src/com/android/browser/SystemAllowGeolocationOrigins.java @@ -48,7 +48,7 @@ class SystemAllowGeolocationOrigins { private final SettingObserver mSettingObserver; public SystemAllowGeolocationOrigins(Context context) { - mContext = context; + mContext = context.getApplicationContext(); mSettingObserver = new SettingObserver(); } -- cgit v1.2.3