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

Commit b6783c46 authored by cretin45's avatar cretin45
Browse files

Dialer: Use global settings name for MSIM

Change-Id: Ic2bc74b5d957ec43a7d7100dc0f724b922df5b5e
parent 6a2f0088
Loading
Loading
Loading
Loading
+2 −9
Original line number Diff line number Diff line
@@ -120,9 +120,6 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O
    private static final String PREF_LAST_T9_LOCALE = "smart_dial_prefix_last_t9_locale";

    public static final String PREFERRED_SIM_ICON_INDEX = "preferred_sim_icon_index";
    public static final String[] MULTI_SIM_NAME = {
        "perferred_name_sub1", "perferred_name_sub2"
    };


    /** Used to open Call Setting */
@@ -1150,12 +1147,8 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O
            return null;
        }

        String name = Settings.System.getString(context.getContentResolver(),
                MULTI_SIM_NAME[subscription]);
        if (TextUtils.isEmpty(name)) {
            return context.getString(R.string.multi_sim_slot_name, subscription + 1);
        }
        return name;
        return Settings.Global.getSimNameForSubscription(context, subscription,
                context.getString(R.string.multi_sim_slot_name, subscription + 1));
    }

    /**