Skip to content

Commit b9183a1

Browse files
deqiangcandroid-build-merger
authored andcommitted
Merge "When adding bluetooth phone account as emergency capable, also list it for multi user" into qt-dev
am: 648f8a4 Change-Id: Idff8702334ada0e9cd5974b17405264e3aca52dd
2 parents 1b47414 + 648f8a4 commit b9183a1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/com/android/bluetooth/hfpclient/connserv/HfpClientConnectionService.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,10 @@ public static PhoneAccount createAccount(Context context, BluetoothDevice device
335335
.hfp_client_connection_service_support_emergency_call)) {
336336
// Need to have an emergency call capability to place emergency call
337337
capabilities |= PhoneAccount.CAPABILITY_PLACE_EMERGENCY_CALLS;
338+
// Emergency call is processed in user 0 context in multi-user setting
339+
// even if caller is from another user. Declare multi user
340+
// capability for the account to be chosen.
341+
capabilities |= PhoneAccount.CAPABILITY_MULTI_USER;
338342
}
339343

340344
PhoneAccount account =

0 commit comments

Comments
 (0)