修正trtc sdk初始化问题
This commit is contained in:
@@ -34,6 +34,7 @@ import com.aiosman.riderpro.AppState
|
|||||||
import com.aiosman.riderpro.LocalNavController
|
import com.aiosman.riderpro.LocalNavController
|
||||||
import com.aiosman.riderpro.ui.NavigationRoute
|
import com.aiosman.riderpro.ui.NavigationRoute
|
||||||
import com.aiosman.riderpro.ui.index.tabs.add.AddPage
|
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.message.NotificationsScreen
|
||||||
import com.aiosman.riderpro.ui.index.tabs.moment.MomentsList
|
import com.aiosman.riderpro.ui.index.tabs.moment.MomentsList
|
||||||
import com.aiosman.riderpro.ui.index.tabs.profile.ProfileWrap
|
import com.aiosman.riderpro.ui.index.tabs.profile.ProfileWrap
|
||||||
@@ -69,6 +70,7 @@ fun IndexScreen() {
|
|||||||
Log.d("IndexScreen", "IndexScreen: ")
|
Log.d("IndexScreen", "IndexScreen: ")
|
||||||
coroutineScope.launch {
|
coroutineScope.launch {
|
||||||
AppState.initWithAccount(coroutineScope, context)
|
AppState.initWithAccount(coroutineScope, context)
|
||||||
|
MessageListViewModel.initData(context)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Scaffold(
|
Scaffold(
|
||||||
|
|||||||
@@ -64,7 +64,6 @@ fun NotificationsScreen() {
|
|||||||
})
|
})
|
||||||
LaunchedEffect(Unit) {
|
LaunchedEffect(Unit) {
|
||||||
systemUiController.setNavigationBarColor(Color.Transparent)
|
systemUiController.setNavigationBarColor(Color.Transparent)
|
||||||
MessageListViewModel.initData(context)
|
|
||||||
}
|
}
|
||||||
Column(
|
Column(
|
||||||
modifier = Modifier.fillMaxSize()
|
modifier = Modifier.fillMaxSize()
|
||||||
|
|||||||
Reference in New Issue
Block a user