Skip to content

Commit 5a9abe4

Browse files
Ruthwar Kumar AmbeerSteve Kondik
authored andcommitted
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
1 parent e691cca commit 5a9abe4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

telephony/java/android/telephony/SubscriptionManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1397,7 +1397,7 @@ public static Resources getResourcesForSubId(Context context, int subId) {
13971397
newConfig.setTo(config);
13981398
if (subInfo != null) {
13991399
newConfig.mcc = subInfo.getMcc();
1400-
newConfig.mnc = subInfo.getMnc();
1400+
newConfig.mnc = subInfo.getMnc() == 0 ? Configuration.MNC_ZERO : subInfo.getMnc();
14011401
}
14021402
DisplayMetrics metrics = context.getResources().getDisplayMetrics();
14031403
DisplayMetrics newMetrics = new DisplayMetrics();

0 commit comments

Comments
 (0)