Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a6bd2b9c authored by Aleksander Morgado's avatar Aleksander Morgado
Browse files

Hide voice call related settings with config_show_sim_info=false

The config_show_sim_info overlay config, when set to false, allows
hiding all telephony related settings, effectively making it a way to
disable telephony altogether in the Settings application, regardless
of the actual telephony support of the device.

Certain settings are not only telephony specific, but also specific to
voice calling capabilities. These settings were not being gated by the
config_show_sim_info overlay config, and instead relied exclusively on
the voice call support reported by TelephonyManager.

All voice call related settings will now be visible only if both
conditions pass: config_show_sim_info=true and TelephonyManager
reports the device as voice capable.

A new helper isTelephonyDisabled() method is introduced to check the
value of config_show_sim_info. This duplicates the logic already
available in SubscriptionUtil.isSimHardwareVisible(), which will
eventually be removed.

NO_IFTTT=Only the relevant component visibility unit tests are updated.

Bug: 395714454
Test: mm && atest SettingsRoboTests
Flag: EXEMPT bugfix
Change-Id: Id46c001197cfb3e9ddcc6d9277010d03cbcf5b9d
parent 8aa595ae
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment