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

Commit e7264a32 authored by Ricardo Cerqueira's avatar Ricardo Cerqueira Committed by Gerrit Code Review
Browse files

Merge "TelephonyManager: isSmsCapable: respect telephony properties" into cm-11.0

parents 5e72c7a6 b3c5a616
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1401,6 +1401,10 @@ public class TelephonyManager {
     * @hide pending API review
     */
    public boolean isSmsCapable() {
        if (!SystemProperties.getBoolean(TelephonyProperties.PROPERTY_SMS_RECEIVE, true)
                && !SystemProperties.getBoolean(TelephonyProperties.PROPERTY_SMS_SEND, true)) {
            return false;
        }
        if (mContext == null) return true;
        return mContext.getResources().getBoolean(
                com.android.internal.R.bool.config_sms_capable);