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

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

Merge "Use TelephonyManager API to check if device is SMS capable."

parents 4327319a 61bf82bc
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -36,6 +36,7 @@ import android.os.Message;
import android.os.ParcelUuid;
import android.os.PowerManager;
import android.os.RemoteException;
import android.telephony.TelephonyManager;
import android.text.TextUtils;
import android.util.Log;
import android.util.SparseArray;
@@ -637,7 +638,8 @@ public class BluetoothMapService extends ProfileService {
        mAdapter = BluetoothAdapter.getDefaultAdapter();
        mAppObserver = new BluetoothMapAppObserver(this, this);

        mSmsCapable = getResources().getBoolean(com.android.internal.R.bool.config_sms_capable);
        TelephonyManager tm = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);
        mSmsCapable = tm.isSmsCapable();

        mEnabledAccounts = mAppObserver.getEnabledAccountItems();
        createMasInstances();  // Uses mEnabledAccounts