Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 42342a7e authored by Makoto Onuki's avatar Makoto Onuki
Browse files

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
parent 64d95bae
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -65,7 +65,7 @@ public class ContactEditorUtils {

    @VisibleForTesting
    ContactEditorUtils(Context context, AccountTypeManager accountTypes) {
        mContext = context;
        mContext = context.getApplicationContext();
        mPrefs = PreferenceManager.getDefaultSharedPreferences(mContext);
        mAccountTypes = accountTypes;
    }