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

Commit c5f1a189 authored by Ethan Chen's avatar Ethan Chen
Browse files

Revert "telephony: Also override nw mode on creation of phone objects."

This reverts commit a2c4d490.

Change-Id: I870ca83dd9201c35b122de434ff1f04339b203e0
parent a2c4d490
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -233,14 +233,6 @@ public class PhoneFactory {
                // because ImsService might need it when it is being opened.
                for (int i = 0; i < numPhones; i++) {
                    sProxyPhones[i].startMonitoringImsService();

                    // Get users NW type, let it override if its not the default NW mode (-1)
                    int userNwType = SubscriptionController.getInstance().getUserNwMode(
                            sProxyPhones[i].getSubId());
                    if (userNwType != SubscriptionManager.DEFAULT_NW_MODE
                            && userNwType != networkModes[i]) {
                        sProxyPhones[i].setPreferredNetworkType(userNwType, null);
                    }
                }
            }
        }