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

Commit b3d1a58f 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 d9e74da3 e4018416
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -36,6 +36,7 @@ import android.os.Message;
import android.os.ParcelUuid;
import android.os.ParcelUuid;
import android.os.PowerManager;
import android.os.PowerManager;
import android.os.RemoteException;
import android.os.RemoteException;
import android.telephony.TelephonyManager;
import android.text.TextUtils;
import android.text.TextUtils;
import android.util.Log;
import android.util.Log;
import android.util.SparseArray;
import android.util.SparseArray;
@@ -637,7 +638,8 @@ public class BluetoothMapService extends ProfileService {
        mAdapter = BluetoothAdapter.getDefaultAdapter();
        mAdapter = BluetoothAdapter.getDefaultAdapter();
        mAppObserver = new BluetoothMapAppObserver(this, this);
        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();
        mEnabledAccounts = mAppObserver.getEnabledAccountItems();
        createMasInstances();  // Uses mEnabledAccounts
        createMasInstances();  // Uses mEnabledAccounts