[Settings] Code refactor for device without SIM

Code refactor to hide some UI entries, since there's a BluetoothWiFiPreferenceController
covers some of the work for device without SIM.

Bug: 259611847
Test: local & auto
Change-Id: Ia221663e180c8dabed2a25a927643c992ef8ac89
This commit is contained in:
Bonian Chen
2022-12-08 05:16:34 +00:00
parent ccf119a283
commit f19e92cc2c
3 changed files with 11 additions and 3 deletions

View File

@@ -26,6 +26,7 @@
android:title="@string/reset_network_title"
settings:userRestriction="no_network_reset"
settings:useAdminDisabledSummary="true"
settings:isPreferenceVisible="@bool/config_show_sim_info"
android:fragment="com.android.settings.ResetNetwork" />
<!-- Bluetooth and WiFi reset -->