commit | 42342a7e91b5076bc222802379e12b56272ca366 | [log] [tgz] |
---|---|---|
author | Makoto Onuki <omakoto@google.com> | Mon Sep 26 13:19:03 2011 -0700 |
committer | Makoto Onuki <omakoto@google.com> | Mon Sep 26 13:22:29 2011 -0700 |
tree | 081c81f4452012321aaeb5273e680b54fcc95aad | |
parent | 64d95bae817be522e576ece311fa17d88a4c627c [diff] |
Prevent activity leak which was introduced in Ifb86c931 Don't store the passed context directly, but use the app context. Bug 5355671 Change-Id: I7cd4f4d1ee4d9364ae34407718125f65cdf67129
diff --git a/src/com/android/contacts/editor/ContactEditorUtils.java b/src/com/android/contacts/editor/ContactEditorUtils.java index 900e68a..0e27223 100644 --- a/src/com/android/contacts/editor/ContactEditorUtils.java +++ b/src/com/android/contacts/editor/ContactEditorUtils.java
@@ -65,7 +65,7 @@ @VisibleForTesting ContactEditorUtils(Context context, AccountTypeManager accountTypes) { - mContext = context; + mContext = context.getApplicationContext(); mPrefs = PreferenceManager.getDefaultSharedPreferences(mContext); mAccountTypes = accountTypes; }