修正trtc sdk初始化问题

This commit is contained in:
2024-10-24 17:40:46 +08:00
parent dbcb4025a6
commit efa96c8e74
2 changed files with 2 additions and 1 deletions

View File

@@ -34,6 +34,7 @@ import com.aiosman.riderpro.AppState
import com.aiosman.riderpro.LocalNavController
import com.aiosman.riderpro.ui.NavigationRoute
import com.aiosman.riderpro.ui.index.tabs.add.AddPage
import com.aiosman.riderpro.ui.index.tabs.message.MessageListViewModel
import com.aiosman.riderpro.ui.index.tabs.message.NotificationsScreen
import com.aiosman.riderpro.ui.index.tabs.moment.MomentsList
import com.aiosman.riderpro.ui.index.tabs.profile.ProfileWrap
@@ -69,6 +70,7 @@ fun IndexScreen() {
Log.d("IndexScreen", "IndexScreen: ")
coroutineScope.launch {
AppState.initWithAccount(coroutineScope, context)
MessageListViewModel.initData(context)
}
}
Scaffold(

View File

@@ -64,7 +64,6 @@ fun NotificationsScreen() {
})
LaunchedEffect(Unit) {
systemUiController.setNavigationBarColor(Color.Transparent)
MessageListViewModel.initData(context)
}
Column(
modifier = Modifier.fillMaxSize()