diff options
author | Ben Murdoch <benm@google.com> | 2011-08-01 13:58:47 +0100 |
---|---|---|
committer | Ben Murdoch <benm@google.com> | 2011-08-01 16:17:37 +0100 |
commit | 914c5591baeb86bf30a5bc28930071442a822d60 (patch) | |
tree | 86f752a67a6a9966b347ba01f08dc9a2ba661bd8 /src/com/android/browser/WebStorageSizeManager.java | |
parent | bf4dc0a894c4bec72ffb840de769ee01ff579932 (diff) | |
download | packages_apps_Browser-914c5591baeb86bf30a5bc28930071442a822d60.zip packages_apps_Browser-914c5591baeb86bf30a5bc28930071442a822d60.tar.gz packages_apps_Browser-914c5591baeb86bf30a5bc28930071442a822d60.tar.bz2 |
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
Diffstat (limited to 'src/com/android/browser/WebStorageSizeManager.java')
-rw-r--r-- | src/com/android/browser/WebStorageSizeManager.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/browser/WebStorageSizeManager.java b/src/com/android/browser/WebStorageSizeManager.java index bd7f8e6..109a02b 100644 --- a/src/com/android/browser/WebStorageSizeManager.java +++ b/src/com/android/browser/WebStorageSizeManager.java @@ -189,7 +189,7 @@ public class WebStorageSizeManager { */ public WebStorageSizeManager(Context ctx, DiskInfo diskInfo, AppCacheInfo appCacheInfo) { - mContext = ctx; + mContext = ctx.getApplicationContext(); mDiskInfo = diskInfo; mGlobalLimit = getGlobalLimit(); // The initial max size of the app cache is either 25% of the global |