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

Commit 7cdd04c8 authored by Yorke Lee's avatar Yorke Lee Committed by Android (Google) Code Review
Browse files

Merge "Create default InCallService with Context.BIND_IMPORTANT" into lmp-mr1-dev

parents 7878b0ce 8efc0323
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -316,8 +316,11 @@ public final class InCallController extends CallsManagerListenerBase {
                        Intent intent = new Intent(InCallService.SERVICE_INTERFACE);
                        intent.setComponent(componentName);

                        if (mContext.bindServiceAsUser(intent, inCallServiceConnection,
                                Context.BIND_AUTO_CREATE, UserHandle.CURRENT)) {
                        final int bindFlags = mInCallComponentName.equals(componentName)
                                ? Context.BIND_AUTO_CREATE | Context.BIND_IMPORTANT
                                : Context.BIND_AUTO_CREATE;
                        if (mContext.bindServiceAsUser(intent, inCallServiceConnection, bindFlags,
                                UserHandle.CURRENT)) {
                            mServiceConnections.put(componentName, inCallServiceConnection);
                        }
                    }