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

Commit a805d392 authored by Zoey Chen's avatar Zoey Chen Committed by Gerrit Code Review
Browse files

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

parents 544f3d52 8eac3a3f
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");
        }