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

Commit 2d01654f authored by kaiyiz's avatar kaiyiz Committed by Linux Build Service Account
Browse files

SystemUI: Fix crash after reboot DUT with wifi on issue

getPhoneId returns invalid id cases array index out of bounds exception
in refresh view.

Make data sub to 0 if phone id is invalid.

CRs-Fixed: 741010

Change-Id: I7604ac729679a0e282b63896dc959e15038a9432
parent 5e76fc8c
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -617,6 +617,9 @@ public class MSimNetworkControllerImpl extends NetworkControllerImpl {
                        mWifiActivity = msg.arg1;
                        int dataSub = SubscriptionManager.getPhoneId(
                                SubscriptionManager.getDefaultDataSubId());
                        if (!SubscriptionManager.isValidPhoneId(dataSub)) {
                            dataSub = 0;
                        }
                        refreshViews(dataSub);
                    }
                    break;