diff options
author | Ruthwar Kumar Ambeer <ruthwar@codeaurora.org> | 2016-02-17 16:23:13 +0530 |
---|---|---|
committer | Steve Kondik <steve@cyngn.com> | 2016-05-21 16:24:14 -0700 |
commit | 5a9abe4a1647a8397431991662d6ef90b7454c56 (patch) | |
tree | 92ccd705af45e5a507c7c47dcd1b315eaaca0f43 /telephony/java | |
parent | e691cca4a617929a2500a2330c88bf4bb691c999 (diff) | |
download | frameworks_base-5a9abe4a1647a8397431991662d6ef90b7454c56.zip frameworks_base-5a9abe4a1647a8397431991662d6ef90b7454c56.tar.gz frameworks_base-5a9abe4a1647a8397431991662d6ef90b7454c56.tar.bz2 |
Handle mnc 00 while retrieving the Resources based on subid
Since mnc 00 is represented as undefined it needs to be replaced
with MNC_ZERO 0xffff for retrieving proper resources.
Change-Id: I9864ae95497593c6e7c442e6aae811e704c9a504
CRs-Fixed: 970188
Diffstat (limited to 'telephony/java')
-rw-r--r-- | telephony/java/android/telephony/SubscriptionManager.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/telephony/java/android/telephony/SubscriptionManager.java b/telephony/java/android/telephony/SubscriptionManager.java index 86021e0..3b375e2 100644 --- a/telephony/java/android/telephony/SubscriptionManager.java +++ b/telephony/java/android/telephony/SubscriptionManager.java @@ -1397,7 +1397,7 @@ public class SubscriptionManager { newConfig.setTo(config); if (subInfo != null) { newConfig.mcc = subInfo.getMcc(); - newConfig.mnc = subInfo.getMnc(); + newConfig.mnc = subInfo.getMnc() == 0 ? Configuration.MNC_ZERO : subInfo.getMnc(); } DisplayMetrics metrics = context.getResources().getDisplayMetrics(); DisplayMetrics newMetrics = new DisplayMetrics(); |