Renew the API getCallState

Since the getCallState was marked as @Deprecated, renew this API as the getCallStateForSubscription. 

Bug: 279852410
Test: build pass

Change-Id: I224164a2d1089483d4f63da1651d7e87296e87f4
This commit is contained in:
SongFerng Wang
2023-11-20 10:46:02 +00:00
parent 8edc0b7052
commit 2d16858c17
3 changed files with 4 additions and 4 deletions

View File

@@ -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;