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

Commit ae4b0415 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Remove getLine1AlphaTag() in Bluetooth code"

parents c2a9ad2d ed3723f8
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -2190,7 +2190,6 @@ public class BluetoothMapContent {
        if (tm != null) {
            fi.mPhoneType = tm.getPhoneType();
            fi.mPhoneNum = tm.getLine1Number();
            fi.mPhoneAlphaTag = tm.getLine1AlphaTag();
        }
    }

+1 −4
Original line number Diff line number Diff line
@@ -1454,12 +1454,9 @@ public class BluetoothMapContentObserver {
                                                    Context.TELEPHONY_SERVICE);
                                    if (tm != null) {
                                        phone = tm.getLine1Number();
                                        name = tm.getLine1AlphaTag();
                                        if (name == null || name.isEmpty()) {
                                        name = phone;
                                    }
                                }
                                }
                                String priority = "no"; // no priority for sms
                                /* Incoming message from the network */
                                if (mMapEventReportVersion
+1 −5
Original line number Diff line number Diff line
@@ -50,7 +50,6 @@ import android.os.Message;
import android.os.PowerManager;
import android.os.UserManager;
import android.telephony.TelephonyManager;
import android.text.TextUtils;
import android.util.Log;

import com.android.bluetooth.IObexConnectionHandler;
@@ -785,11 +784,8 @@ public class BluetoothPbapService extends ProfileService implements IObexConnect
        TelephonyManager tm = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);
        if (tm != null) {
            sLocalPhoneNum = tm.getLine1Number();
            sLocalPhoneName = tm.getLine1AlphaTag();
            if (TextUtils.isEmpty(sLocalPhoneName)) {
            sLocalPhoneName = this.getString(R.string.localPhoneName);
        }
        }
        if (VERBOSE)
            Log.v(TAG, "Local Phone Details- Number:" + sLocalPhoneNum
                    + ", Name:" + sLocalPhoneName);