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

Commit 704667ed authored by Yao Lu's avatar Yao Lu Committed by Android (Google) Code Review
Browse files

Merge "Update default account list in settings on account change" into ub-contactsdialer-f-dev

parents 5295444c 6d29c04a
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -20,6 +20,7 @@ import android.app.AlertDialog;
import android.content.Context;
import android.preference.ListPreference;
import android.util.AttributeSet;
import android.view.View;

import com.android.contacts.common.model.AccountTypeManager;
import com.android.contacts.common.model.account.AccountType;
@@ -45,6 +46,12 @@ public class DefaultAccountPreference extends ListPreference {
        prepare();
    }

    @Override
    protected View onCreateDialogView() {
        prepare();
        return super.onCreateDialogView();
    }

    private void prepare() {
        mPreferences = new ContactsPreferences(getContext());
        mAccountMap = new HashMap<>();