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

Commit 9d03c7ab authored by Pranav Madapurmath's avatar Pranav Madapurmath Committed by Android (Google) Code Review
Browse files

Merge "Avoid resetting InCallAdapter when set." into main

parents 1bc3ef6e 74319651
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -289,6 +289,11 @@ public abstract class InCallService extends Service {

            switch (msg.what) {
                case MSG_SET_IN_CALL_ADAPTER:
                    if (mPhone != null) {
                        Log.i(this, "mPhone is already instantiated, ignoring "
                                + "request to reset adapter.");
                        break;
                    }
                    String callingPackage = getApplicationContext().getOpPackageName();
                    mPhone = new Phone(new InCallAdapter((IInCallAdapter) msg.obj), callingPackage,
                            getApplicationContext().getApplicationInfo().targetSdkVersion);