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

Commit 32978355 authored by Tomasz Wasilczyk's avatar Tomasz Wasilczyk
Browse files

Revert behavior of isVoiceCapable

Bug: 390681978
Bug: 393424911
Test: TH
Flag: EXEMPT bugfix
Change-Id: I63edd43e322b25284aeef9ef73ecd255b615b974
parent 91dbfc66
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -7080,7 +7080,8 @@ public class TelephonyManager {
     */
    @Deprecated
    public boolean isVoiceCapable() {
        return hasCapability(PackageManager.FEATURE_TELEPHONY_CALLING,
        if (mContext == null) return true;
        return mContext.getResources().getBoolean(
                com.android.internal.R.bool.config_voice_capable);
    }
@@ -7104,7 +7105,8 @@ public class TelephonyManager {
     * @see SubscriptionInfo#getServiceCapabilities()
     */
    public boolean isDeviceVoiceCapable() {
        return isVoiceCapable();
        return hasCapability(PackageManager.FEATURE_TELEPHONY_CALLING,
                com.android.internal.R.bool.config_voice_capable);
    }
    /**