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

Commit b402caad authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add BIND_INCLUDE_CAPABILITIES flags to SystemCaptionsManagerService" into rvc-dev

parents 330450c2 4fca9fc7
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -108,7 +108,8 @@ final class RemoteSystemCaptionsManagerService {
            }
            }
            mBinding = true;
            mBinding = true;


            int flags = Context.BIND_AUTO_CREATE | Context.BIND_FOREGROUND_SERVICE;
            int flags = Context.BIND_AUTO_CREATE | Context.BIND_FOREGROUND_SERVICE
                    | Context.BIND_INCLUDE_CAPABILITIES;
            boolean willBind = mContext.bindServiceAsUser(mIntent, mServiceConnection, flags,
            boolean willBind = mContext.bindServiceAsUser(mIntent, mServiceConnection, flags,
                    mHandler, new UserHandle(mUserId));
                    mHandler, new UserHandle(mUserId));
            if (!willBind) {
            if (!willBind) {