Loading src/com/android/settings/network/telephony/NetworkProviderWifiCallingGroup.java +2 −2 Original line number Diff line number Diff line Loading @@ -240,8 +240,8 @@ public class NetworkProviderWifiCallingGroup extends return true; }); pref.setEnabled(getTelephonyManagerForSubscriptionId(subId).getCallState() == TelephonyManager.CALL_STATE_IDLE); pref.setEnabled(getTelephonyManagerForSubscriptionId(subId) .getCallStateForSubscription() == TelephonyManager.CALL_STATE_IDLE); pref.setOrder(order++); int resId = com.android.internal.R.string.wifi_calling_off_summary; Loading src/com/android/settings/network/telephony/WifiCallingPreferenceController.java +1 −1 Original line number Diff line number Diff line Loading @@ -218,7 +218,7 @@ public class WifiCallingPreferenceController extends TelephonyBasePreferenceCont mTelephonyManager = getTelephonyManager(context, subId); // assign current call state so that it helps to show correct preference state even // before first onCallStateChanged() by initial registration. mCallState = mTelephonyManager.getCallState(subId); mCallState = mTelephonyManager.getCallStateForSubscription(); mTelephonyManager.registerTelephonyCallback(context.getMainExecutor(), this); } Loading src/com/android/settings/wifi/calling/WifiCallingSettingsForSub.java +1 −1 Original line number Diff line number Diff line Loading @@ -125,7 +125,7 @@ public class WifiCallingSettingsForSub extends SettingsPreferenceFragment if (prefSwitch != null) { isWfcEnabled = prefSwitch.isChecked(); isCallStateIdle = getTelephonyManagerForSub( WifiCallingSettingsForSub.this.mSubId).getCallState() WifiCallingSettingsForSub.this.mSubId).getCallStateForSubscription() == TelephonyManager.CALL_STATE_IDLE; boolean isNonTtyOrTtyOnVolteEnabled = true; Loading Loading
src/com/android/settings/network/telephony/NetworkProviderWifiCallingGroup.java +2 −2 Original line number Diff line number Diff line Loading @@ -240,8 +240,8 @@ public class NetworkProviderWifiCallingGroup extends return true; }); pref.setEnabled(getTelephonyManagerForSubscriptionId(subId).getCallState() == TelephonyManager.CALL_STATE_IDLE); pref.setEnabled(getTelephonyManagerForSubscriptionId(subId) .getCallStateForSubscription() == TelephonyManager.CALL_STATE_IDLE); pref.setOrder(order++); int resId = com.android.internal.R.string.wifi_calling_off_summary; Loading
src/com/android/settings/network/telephony/WifiCallingPreferenceController.java +1 −1 Original line number Diff line number Diff line Loading @@ -218,7 +218,7 @@ public class WifiCallingPreferenceController extends TelephonyBasePreferenceCont mTelephonyManager = getTelephonyManager(context, subId); // assign current call state so that it helps to show correct preference state even // before first onCallStateChanged() by initial registration. mCallState = mTelephonyManager.getCallState(subId); mCallState = mTelephonyManager.getCallStateForSubscription(); mTelephonyManager.registerTelephonyCallback(context.getMainExecutor(), this); } Loading
src/com/android/settings/wifi/calling/WifiCallingSettingsForSub.java +1 −1 Original line number Diff line number Diff line Loading @@ -125,7 +125,7 @@ public class WifiCallingSettingsForSub extends SettingsPreferenceFragment if (prefSwitch != null) { isWfcEnabled = prefSwitch.isChecked(); isCallStateIdle = getTelephonyManagerForSub( WifiCallingSettingsForSub.this.mSubId).getCallState() WifiCallingSettingsForSub.this.mSubId).getCallStateForSubscription() == TelephonyManager.CALL_STATE_IDLE; boolean isNonTtyOrTtyOnVolteEnabled = true; Loading