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

Commit 91bc0fdc authored by Alex Salo's avatar Alex Salo Committed by Android (Google) Code Review
Browse files

Merge "Bind NotificationService with INCLUDE_CAPABILITIES"

parents dd17afa1 8ca31120
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -437,7 +437,7 @@ public abstract class AbstractRemoteService<S extends AbstractRemoteService<S, I
        mBinding = true;
        mBinding = true;


        final int flags = Context.BIND_AUTO_CREATE | Context.BIND_FOREGROUND_SERVICE
        final int flags = Context.BIND_AUTO_CREATE | Context.BIND_FOREGROUND_SERVICE
                | mBindingFlags;
                | Context.BIND_INCLUDE_CAPABILITIES | mBindingFlags;


        final boolean willBind = mContext.bindServiceAsUser(mIntent, mServiceConnection, flags,
        final boolean willBind = mContext.bindServiceAsUser(mIntent, mServiceConnection, flags,
                mHandler, new UserHandle(mUserId));
                mHandler, new UserHandle(mUserId));