Set Phone number format as LTR
Bug: 334339964
Test: verify the phone number format
Change-Id: Ifa5dc394c3d9b8d7565e6200a47b7cb9fb1bba84
diff --git a/src/com/android/settings/network/telephony/SubscriptionRepository.kt b/src/com/android/settings/network/telephony/SubscriptionRepository.kt
index 938f4d8..f4bbc76 100644
--- a/src/com/android/settings/network/telephony/SubscriptionRepository.kt
+++ b/src/com/android/settings/network/telephony/SubscriptionRepository.kt
@@ -68,7 +68,7 @@
.flowOn(Dispatchers.Default)
fun Context.phoneNumberFlow(subscriptionInfo: SubscriptionInfo) = subscriptionsChangedFlow().map {
- SubscriptionUtil.getFormattedPhoneNumber(this, subscriptionInfo)
+ SubscriptionUtil.getBidiFormattedPhoneNumber(this, subscriptionInfo)
}.filterNot { it.isNullOrEmpty() }.flowOn(Dispatchers.Default)
fun Context.subscriptionsChangedFlow() = callbackFlow {
diff --git a/src/com/android/settings/spa/network/PrimarySimRepository.kt b/src/com/android/settings/spa/network/PrimarySimRepository.kt
index b9eb3ff..e34a29e 100644
--- a/src/com/android/settings/spa/network/PrimarySimRepository.kt
+++ b/src/com/android/settings/spa/network/PrimarySimRepository.kt
@@ -43,7 +43,7 @@
val item = ListPreferenceOption(
id = info.subscriptionId,
text = "${info.displayName}",
- summary = SubscriptionUtil.getFormattedPhoneNumber(context, info) ?: "",
+ summary = SubscriptionUtil.getBidiFormattedPhoneNumber(context, info) ?: "",
)
callsAndSmsList += item
dataList += item