Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5a9abe4a authored by Ruthwar Kumar Ambeer's avatar Ruthwar Kumar Ambeer Committed by Steve Kondik
Browse files

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
parent e691cca4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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();