Make wifi calling slice consistent

The wifi calling search result is grayed out if it is not using
carrier WFC. In order to ensure the search result is aligned with the
corresponding settings, the checker of wifi calling slice will be the
same with wifi calling preference.

Bug: 285594611
Test: manual test
Change-Id: I22d794332a0cc2ecbcb8b5e8836364e926400cbf
This commit is contained in:
Mill Chen
2023-06-29 17:49:33 +08:00
parent 3411c09fa9
commit fbe8e9f571
3 changed files with 26 additions and 7 deletions

View File

@@ -131,12 +131,7 @@ public class WifiCallingSliceHelper {
public Slice createWifiCallingSlice(Uri sliceUri) {
final int subId = getDefaultVoiceSubId();
if (!SubscriptionManager.isValidSubscriptionId(subId)) {
Log.d(TAG, "Invalid subscription Id");
return null;
}
if (!queryImsState(subId).isWifiCallingProvisioned()) {
if (!queryImsState(subId).isReadyToWifiCalling()) {
Log.d(TAG, "Wifi calling is either not provisioned or not enabled by Platform");
return null;
}
@@ -223,7 +218,7 @@ public class WifiCallingSliceHelper {
return null;
}
if (!queryImsState(subId).isWifiCallingProvisioned()) {
if (!queryImsState(subId).isReadyToWifiCalling()) {
Log.d(TAG, "Wifi calling is either not provisioned or not enabled by platform");
return null;
}