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

Commit b4ed8179 authored by Tomasz Wasilczyk's avatar Tomasz Wasilczyk
Browse files

Telephony rebootModem: don't drop command result on the floor

Bug: 371632841
Test: android.telephony.cts.TelephonyManagerTest#testRebootRadio
Flag: EXEMPT bugfix
Change-Id: I5c55c906f09310831aa1d0c9a0fd5fd289831d86
parent 4353a8df
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -8325,7 +8325,9 @@ public class TelephonyManager {
            if (telephony == null) {
                throw new IllegalStateException("telephony service is null.");
            }
            telephony.rebootModem(getSlotIndex());
            if (!telephony.rebootModem(getSlotIndex())) {
                throw new RuntimeException("Couldn't reboot modem (it may be not supported)");
            }
        } catch (RemoteException ex) {
            Rlog.e(TAG, "rebootRadio RemoteException", ex);
            throw ex.rethrowAsRuntimeException();