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

Commit 0c4d805e authored by Danny Baumann's avatar Danny Baumann Committed by Gerrit Code Review
Browse files

Ensure the smart dial name matcher is initialized in onStart().

Otherwise SmartDialPrefix.getMap() might not be initialized yet.

JIRA: NIGHTLIES-1279
Change-Id: If3aca2809faf0c1f379518096a76f17d357fb8e2
parent f81b4288
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -48,7 +48,6 @@ public class SmartDialNumberListAdapter extends DialerPhoneNumberListAdapter {

    public SmartDialNumberListAdapter(Context context) {
        super(context);
        mNameMatcher = new SmartDialNameMatcher("", SmartDialPrefix.getMap(), context);

        if (DEBUG) {
            Log.v(TAG, "Constructing List Adapter");
@@ -63,6 +62,8 @@ public class SmartDialNumberListAdapter extends DialerPhoneNumberListAdapter {
            Log.v(TAG, "Configure Loader with query" + getQueryString());
        }

        mNameMatcher = new SmartDialNameMatcher("", SmartDialPrefix.getMap(), getContext());

        if (getQueryString() == null) {
            loader.configureQuery("");
            mNameMatcher.setQuery("");