summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkaiyiz <kaiyiz@codeaurora.org>2014-04-23 10:32:05 +0800
committeremancebo <emancebo@cyngn.com>2014-09-04 15:20:00 -0700
commit7c66eed41cf3783e5fdc17d8835aad0c2198022e (patch)
tree471f450d9a765f2c5fd349933907f56c5e0cfbe4
parent9bc230730809ffbdf3138343200090d8eefbe565 (diff)
downloadpackages_apps_InCallUI-7c66eed41cf3783e5fdc17d8835aad0c2198022e.tar.gz
packages_apps_InCallUI-7c66eed41cf3783e5fdc17d8835aad0c2198022e.tar.bz2
packages_apps_InCallUI-7c66eed41cf3783e5fdc17d8835aad0c2198022e.zip
InCallUI: Get sim name according to system setting
Only use sim name that is accroding to English. Get sim name according to system setting CRs-Fixed: 652237 Change-Id: I75ecf011ff989da9a16f0753876164cc3c61ad8c
-rw-r--r--src/com/android/incallui/MSimInCallActivity.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/com/android/incallui/MSimInCallActivity.java b/src/com/android/incallui/MSimInCallActivity.java
index 2a4df735..f027e19c 100644
--- a/src/com/android/incallui/MSimInCallActivity.java
+++ b/src/com/android/incallui/MSimInCallActivity.java
@@ -24,6 +24,7 @@ import android.app.FragmentTransaction;
import android.app.ActionBar.Tab;
import android.content.res.TypedArray;
import android.os.Bundle;
+import android.provider.Settings;
import android.telephony.MSimTelephonyManager;
import android.view.View;
import android.view.Window;
@@ -45,6 +46,10 @@ public class MSimInCallActivity extends InCallActivity {
private Tab[] mDsdaTab = new Tab[TAB_COUNT_TWO];
private boolean[] mDsdaTabAdd = {false, false};
+ private static final String[] MULTI_SIM_NAME = {
+ "perferred_name_sub1", "perferred_name_sub2"
+ };
+
@Override
protected void onCreate(Bundle icicle) {
Log.d(this, "onCreate()... this = " + this);
@@ -147,7 +152,8 @@ public class MSimInCallActivity extends InCallActivity {
.setBackground(icons.getDrawable(i));
((TextView)mDsdaTabLayout[i].findViewById(R.id.tabSubText))
- .setText(subString[i]);
+ .setText(Settings.System.getString(getContentResolver(),
+ MULTI_SIM_NAME[i]));
mDsdaTab[i] = bar.newTab().setCustomView(mDsdaTabLayout[i])
.setTabListener(new TabListener(i));