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

Commit 8c0a7ac7 authored by Linux Build Service Account's avatar Linux Build Service Account
Browse files

Merge be18791b on remote branch

Change-Id: Iea9d8dab51f19f8daa6660a85238afc0f8b662a1
parents 16f93d7c be18791b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -56,7 +56,7 @@ LOCAL_STATIC_JAVA_LIBRARIES := \
LOCAL_PACKAGE_NAME := Contacts
LOCAL_CERTIFICATE := shared
LOCAL_PRIVILEGED_MODULE := true

LOCAL_JAVA_LIBRARIES := telephony-common
LOCAL_PROGUARD_FLAG_FILES := proguard.flags

LOCAL_SDK_VERSION := current
+4 −0
Original line number Diff line number Diff line
@@ -67,6 +67,8 @@ import android.widget.LinearLayout;
import android.widget.ListPopupWindow;
import android.widget.TextView;

import com.android.contacts.common.MoreContactUtils;

import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.Arrays;
@@ -852,6 +854,8 @@ public class CompactRawContactsEditorView extends LinearLayout implements View.O
        } else {
            mAccountSelectorName.setVisibility(View.VISIBLE);
            mAccountSelectorName.setText(accountInfo.first);
            MoreContactUtils.setSimOperatorName(accountInfo.first,
                    mAccountSelectorName, getContext());
        }

        final String selectorTitle = getResources().getString(
+26 −0
Original line number Diff line number Diff line
@@ -185,6 +185,8 @@ import com.android.contacts.widget.MultiShrinkScroller.MultiShrinkScrollerListen
import com.android.contacts.widget.QuickContactImageView;
import com.android.contactsbind.HelpUtils;

import com.android.internal.telephony.OperatorSimInfo;

import com.google.common.collect.Lists;
import com.google.common.collect.ImmutableList;
import java.lang.SecurityException;
@@ -2930,6 +2932,12 @@ public class QuickContactActivity extends ContactsActivity
                                    + MoreContactUtils.getAcount(
                                            QuickContactActivity.this,
                                            SimContactsConstants.SLOT2).name);
                            String customLabel = MoreContactUtils.getCustomOperatorLabel(
                                    getApplicationContext(), SimContactsConstants.SLOT2);
                            if(!TextUtils.isEmpty(customLabel)) {
                                copyToSim2Menu.setTitle(getString(R.string.menu_copyTo)
                                    + customLabel);
                            }
                            copyToSim2Menu.setVisible(true);
                        }
                        if (SimContactsConstants.SIM_NAME_2.equals(accoutName)
@@ -2938,6 +2946,12 @@ public class QuickContactActivity extends ContactsActivity
                                    + MoreContactUtils.getAcount(
                                            QuickContactActivity.this,
                                            SimContactsConstants.SLOT1).name);
                            String customLabel = MoreContactUtils.getCustomOperatorLabel(
                                    getApplicationContext(), SimContactsConstants.SLOT1);
                            if(!TextUtils.isEmpty(customLabel)) {
                                copyToSim1Menu.setTitle(getString(R.string.menu_copyTo)
                                    + customLabel);
                            }
                            copyToSim1Menu.setVisible(true);
                        }
                    }
@@ -2949,12 +2963,24 @@ public class QuickContactActivity extends ContactsActivity
                            copyToSim1Menu.setTitle(getString(R.string.menu_copyTo)
                                    + MoreContactUtils.getAcount(
                                            this, SimContactsConstants.SLOT1).name);
                            String customLabel = MoreContactUtils.getCustomOperatorLabel(
                                    getApplicationContext(), SimContactsConstants.SLOT1);
                            if(!TextUtils.isEmpty(customLabel)) {
                                copyToSim1Menu.setTitle(getString(R.string.menu_copyTo)
                                    + customLabel);
                            }
                            copyToSim1Menu.setVisible(true);
                        }
                        if (hasPhoneOrEmail && simTwoLoadComplete) {
                            copyToSim2Menu.setTitle(getString(R.string.menu_copyTo)
                                    + MoreContactUtils.getAcount(
                                            this, SimContactsConstants.SLOT2).name);
                            String customLabel = MoreContactUtils.getCustomOperatorLabel(
                                    getApplicationContext(), SimContactsConstants.SLOT2);
                            if(!TextUtils.isEmpty(customLabel)) {
                                copyToSim2Menu.setTitle(getString(R.string.menu_copyTo)
                                    + customLabel);
                            }
                            copyToSim2Menu.setVisible(true);
                        }
                    } else {