Hide "Phone number" from About page if not call enabled.

Bug: None
Test: make RunSettingsRoboTests
ROBOTEST_FILTER=com.android.settings.deviceinfo
Change-Id: Ib056bae12d23fe68e71fe78c92741b8dc7887de0
This commit is contained in:
Ben Lin
2018-01-30 15:39:18 -08:00
parent 7245bbb3d5
commit 9703a9757a
2 changed files with 18 additions and 1 deletions

View File

@@ -58,7 +58,7 @@ public class PhoneNumberPreferenceController extends AbstractPreferenceControlle
@Override
public boolean isAvailable() {
return true;
return mTelephonyManager.isVoiceCapable();
}
@Override