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

Commit be538c26 authored by Philip P. Moltmann's avatar Philip P. Moltmann
Browse files

Bind print svcs as "in foreground" for location

Test: Interacted with wifi-direct printers
Fixes: 132715500
Change-Id: Icead54500bf1557e88139a3b37085d3579d526fc
parent 1198fc4e
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -572,7 +572,8 @@ final class RemotePrintService implements DeathRecipient {

        boolean wasBound = mContext.bindServiceAsUser(mIntent, mServiceConnection,
                Context.BIND_AUTO_CREATE | Context.BIND_FOREGROUND_SERVICE
                        | Context.BIND_ALLOW_INSTANT, new UserHandle(mUserId));
                        | Context.BIND_INCLUDE_CAPABILITIES | Context.BIND_ALLOW_INSTANT,
                new UserHandle(mUserId));

        if (!wasBound) {
            if (DEBUG) {