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

Commit 55016c61 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Remove unused handleNotInService()" am: 81b56fb0

Original change: https://android-review.googlesource.com/c/platform/frameworks/opt/telephony/+/1361719

Change-Id: Ifa9c4ec9c247f1eb23df8b9962328ab553756c9c
parents 97d66629 81b56fb0
Loading
Loading
Loading
Loading
+0 −23
Original line number Diff line number Diff line
@@ -860,29 +860,6 @@ public abstract class SMSDispatcher extends Handler {
        }
    }

    /**
     * Handles outbound message when the phone is not in service.
     *
     * @param ss     Current service state.  Valid values are:
     *                  OUT_OF_SERVICE
     *                  EMERGENCY_ONLY
     *                  POWER_OFF
     * @param sentIntent the PendingIntent to send the error to
     */
    protected static void handleNotInService(int ss, PendingIntent sentIntent) {
        if (sentIntent != null) {
            try {
                if (ss == ServiceState.STATE_POWER_OFF) {
                    sentIntent.send(RESULT_ERROR_RADIO_OFF);
                } else {
                    sentIntent.send(RESULT_ERROR_NO_SERVICE);
                }
            } catch (CanceledException ex) {
                Rlog.e(TAG, "Failed to send result");
            }
        }
    }

    /**
     * @param ss service state
     * @return The result error based on input service state for not in service error