Repoint telephony related translations
Repointed most translations to telephony resources
Test: TeleServiceTests
Bug: 149401237
Change-Id: I15dcea44b758cddf67d2d291cd8833582580cd53
diff --git a/src/com/android/phone/CallNotifier.java b/src/com/android/phone/CallNotifier.java
index 5b14591..a609f98 100644
--- a/src/com/android/phone/CallNotifier.java
+++ b/src/com/android/phone/CallNotifier.java
@@ -43,6 +43,7 @@
import com.android.internal.telephony.cdma.CdmaInformationRecords.CdmaDisplayInfoRec;
import com.android.internal.telephony.cdma.CdmaInformationRecords.CdmaSignalInfoRec;
import com.android.internal.telephony.cdma.SignalToneUtil;
+import com.android.internal.telephony.util.TelephonyResourceUtils;
import java.util.ArrayList;
import java.util.Collections;
@@ -652,16 +653,16 @@
int resId = 0;
switch (((Integer)r.result).intValue()) {
case TelecomManager.TTY_MODE_FULL:
- resId = com.android.internal.R.string.peerTtyModeFull;
+ resId = com.android.telephony.resources.R.string.peerTtyModeFull;
break;
case TelecomManager.TTY_MODE_HCO:
- resId = com.android.internal.R.string.peerTtyModeHco;
+ resId = com.android.telephony.resources.R.string.peerTtyModeHco;
break;
case TelecomManager.TTY_MODE_VCO:
- resId = com.android.internal.R.string.peerTtyModeVco;
+ resId = com.android.telephony.resources.R.string.peerTtyModeVco;
break;
case TelecomManager.TTY_MODE_OFF:
- resId = com.android.internal.R.string.peerTtyModeOff;
+ resId = com.android.telephony.resources.R.string.peerTtyModeOff;
break;
default:
Log.e(LOG_TAG, "Unsupported TTY mode: " + r.result);
@@ -669,7 +670,7 @@
}
if (resId != 0) {
PhoneDisplayMessage.displayNetworkMessage(mApplication,
- mApplication.getResources().getString(resId));
+ TelephonyResourceUtils.getTelephonyResources(mApplication).getString(resId));
// start a timer that kills the dialog
sendEmptyMessageDelayed(INTERNAL_SHOW_MESSAGE_NOTIFICATION_DONE,