mirror of
https://github.com/kavishdevar/librepods.git
synced 2026-01-31 07:10:45 +00:00
android: don't crash if att not available
This commit is contained in:
@@ -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 }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user