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

Commit aab9659d authored by Zoey Chen's avatar Zoey Chen Committed by Automerger Merge Worker
Browse files

Merge "[Telephony] Return if context is null when register TelephonyCallback"...

Merge "[Telephony] Return if context is null when register TelephonyCallback" am: a805d392 am: 51f11f9b

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1644386

Change-Id: I8f6b72edbe920ae78b2a59dea4b3cd8e21ba47e1
parents bcd0c980 51f11f9b
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -14574,6 +14574,11 @@ public class TelephonyManager {
     */
    public void registerTelephonyCallback(@NonNull @CallbackExecutor Executor executor,
            @NonNull TelephonyCallback callback) {
        if (mContext == null) {
            throw new IllegalStateException("telephony service is null.");
        }
        if (executor == null || callback == null) {
            throw new IllegalArgumentException("TelephonyCallback and executor must be non-null");
        }