Bind print svcs as "in foreground" for location

Test: Interacted with wifi-direct printers
Fixes: 132715500
Change-Id: Icead54500bf1557e88139a3b37085d3579d526fc
This commit is contained in:
Philip P. Moltmann
2019-05-14 13:50:48 -07:00
parent 1198fc4e71
commit be538c26d5

View File

@@ -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) {