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

Commit 1b9a38d5 authored by Gaurav Asati's avatar Gaurav Asati Committed by Gerrit - the friendly Code Review server
Browse files

Bluetooth: Send default value for CNUM.

 - When null value is returned for operator's
   name and subscriber number from telephony
   API's add default values for those.

Change-Id: Ic00e79bd9c8ad1a69ea25683081634225090c563
CRs-Fixed: 756104
parent 51764c58
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -268,6 +268,12 @@ public final class BluetoothPhoneService extends Service {
                        if (TextUtils.isEmpty(address)) {
                            address = TelephonyManager.from(BluetoothPhoneService.this)
                                    .getLine1Number();
                            /* if address is still null then while loop in
                             * sendSynchronousRequest will never be terminated and all
                             * subsequent requests will keep on waiting */
                            if (TextUtils.isEmpty(address)) {
                                address = "";
                            }
                        }
                    } finally {
                        request.setResult(address);