Fix WiFi calling option is showing in search result regardless the carrier supports VoWiFi or not

Change Availability Status to UNSUPPORTED_ON_DEVICE when device doesn't
support VoWiFi.

Change-Id: I8ac501cf7442f1cd7d41f61d2db912d82a9e8c25
Fixes: 120806624
Test: manual and robotests
This commit is contained in:
Stanley Wang
2018-12-28 18:39:47 +08:00
parent 637c874dff
commit 242502e5a9
2 changed files with 10 additions and 1 deletions

View File

@@ -72,7 +72,7 @@ public class WifiCallingPreferenceController extends BasePreferenceController im
&& MobileNetworkUtils.isWifiCallingEnabled(mContext,
SubscriptionManager.getPhoneId(mSubId))
? AVAILABLE
: CONDITIONALLY_UNAVAILABLE;
: UNSUPPORTED_ON_DEVICE;
}
@Override