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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user