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. bug:28219719 Change-Id: I7e1630c2f5c31959306d862b10e7987bb449ea9f
This commit is contained in:
committed by
Robert Greenwalt
parent
e33901c232
commit
e1da5a3964
@@ -1347,6 +1347,7 @@ public class SubscriptionManager {
|
||||
if (subInfo != null) {
|
||||
newConfig.mcc = subInfo.getMcc();
|
||||
newConfig.mnc = subInfo.getMnc();
|
||||
if (newConfig.mnc == 0) newConfig.mnc = Configuration.MNC_ZERO;
|
||||
}
|
||||
DisplayMetrics metrics = context.getResources().getDisplayMetrics();
|
||||
DisplayMetrics newMetrics = new DisplayMetrics();
|
||||
|
||||
Reference in New Issue
Block a user