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

Commit 23369389 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Shutdown: fix timeout issue when shundown radios"

parents 9ebd7037 10031720
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -556,10 +556,13 @@ public final class ShutdownThread extends Thread {
                            if (MSimTelephonyManager.getDefault().isMultiSimEnabled()) {
                                final ITelephonyMSim mphone = ITelephonyMSim.Stub.asInterface(
                                        ServiceManager.checkService("phone_msim"));
                                radioOff = true;
                                if (mphone != null) {
                                    for (int i = 0; i < MSimTelephonyManager.getDefault().
                                            getPhoneCount(); i++) {
                                        radioOff = radioOff && !mphone.isRadioOn(i);
                                    }
                                }
                            } else {
                                radioOff = !phone.isRadioOn();
                            }