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

Commit 14c0833e authored by Deqiang Chen's avatar Deqiang Chen
Browse files

When adding bluetooth phone account as emergency capable, also list it for multi user

Test: local test. adb shell setprop ril.ecclist 911,122,*911,#911,411.
And then manual test that the bluetooth phone account is chosen for 411 ecall.

Bug: 134179750

Merged-In: Ibe297d30f713534e0977aac5a95543053aac9f9d
Change-Id: Ibe297d30f713534e0977aac5a95543053aac9f9d
parent 2ede7353
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -335,6 +335,10 @@ public class HfpClientConnectionService extends ConnectionService {
                .hfp_client_connection_service_support_emergency_call)) {
            // Need to have an emergency call capability to place emergency call
            capabilities |= PhoneAccount.CAPABILITY_PLACE_EMERGENCY_CALLS;
            // Emergency call is processed in user 0 context in multi-user setting
            // even if caller is from another user. Declare multi user
            // capability for the account to be chosen.
            capabilities |= PhoneAccount.CAPABILITY_MULTI_USER;
        }

        PhoneAccount account =