Check DISALLOW_CONFIG_MOBILE_NETWORKS when search

If disallowed, not show mobile related search results.

Bug: 358238959
Flag: EXEMPT bug fix
Test: manual - search Mobile Settings
Test: atest MobileNetworkSettingsSearchIndexTest
Change-Id: I79b984f41f09dd9612bcd0c9942089756d5d365d
This commit is contained in:
Chaohui Wang
2024-09-20 15:27:57 +08:00
parent d1ced23c7f
commit 73fb290969
9 changed files with 66 additions and 35 deletions

View File

@@ -57,7 +57,7 @@ constructor(
private var isAirplaneModeOn = false
override fun getAvailabilityStatus() =
if (SimRepository(mContext).showMobileNetworkPage()) AVAILABLE
if (SimRepository(mContext).showMobileNetworkPageEntrance()) AVAILABLE
else CONDITIONALLY_UNAVAILABLE
override fun displayPreference(screen: PreferenceScreen) {