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

@@ -212,7 +212,7 @@ open class NetworkCellularGroupProvider : SettingsPageProvider, SearchablePage {
const val fileName = "NetworkCellularGroupProvider"
private fun isPageSearchable(context: Context) =
Flags.isDualSimOnboardingEnabled() && SimRepository(context).showMobileNetworkPage()
Flags.isDualSimOnboardingEnabled() && SimRepository(context).canEnterMobileNetworkPage()
}
}