Merge "Bind voice interactor as top-app when it is being used" into qt-qpr1-dev

This commit is contained in:
TreeHugger Robot
2019-09-05 19:41:09 +00:00
committed by Android (Google) Code Review

View File

@@ -194,7 +194,7 @@ final class VoiceInteractionSessionConnection implements ServiceConnection,
if (!mFullyBound) {
mFullyBound = mContext.bindServiceAsUser(mBindIntent, mFullConnection,
Context.BIND_AUTO_CREATE | Context.BIND_TREAT_LIKE_ACTIVITY
| Context.BIND_FOREGROUND_SERVICE
| Context.BIND_SCHEDULE_LIKE_TOP_APP
| Context.BIND_ALLOW_BACKGROUND_ACTIVITY_STARTS,
new UserHandle(mUser));
}