android: don't crash if att not available

This commit is contained in:
Kavish Devar
2025-09-28 17:01:42 +05:30
parent 147e511659
commit e158ba1b27

View File

@@ -85,7 +85,7 @@ fun HearingAidScreen(navController: NavController) {
val verticalScrollState = rememberScrollState()
val hazeState = remember { HazeState() }
val snackbarHostState = remember { SnackbarHostState() }
val attManager = ServiceManager.getService()?.attManager ?: throw IllegalStateException("ATTManager not available")
val attManager = ServiceManager.getService()?.attManager ?: return
val aacpManager = remember { ServiceManager.getService()?.aacpManager }