feat: Add screen orientation setting and improve padding for navigation bars in ChatsList and Onboarding screens
This commit is contained in:
@@ -151,8 +151,15 @@ fun ChatsListScreen(
|
||||
LaunchedEffect(Unit) { hasInitialized = true }
|
||||
|
||||
val view = androidx.compose.ui.platform.LocalView.current
|
||||
val context = androidx.compose.ui.platform.LocalContext.current
|
||||
val drawerState = rememberDrawerState(initialValue = DrawerValue.Closed)
|
||||
val scope = rememberCoroutineScope()
|
||||
|
||||
// 🔥 ВСЕГДА закрываем клавиатуру при появлении ChatsListScreen
|
||||
LaunchedEffect(Unit) {
|
||||
val imm = context.getSystemService(android.content.Context.INPUT_METHOD_SERVICE) as android.view.inputmethod.InputMethodManager
|
||||
imm.hideSoftInputFromWindow(view.windowToken, 0)
|
||||
}
|
||||
|
||||
// Update status bar and completely hide navigation bar
|
||||
LaunchedEffect(isDarkTheme) {
|
||||
@@ -199,11 +206,10 @@ fun ChatsListScreen(
|
||||
var showStatusDialog by remember { mutableStateOf(false) }
|
||||
val debugLogs by ProtocolManager.debugLogs.collectAsState()
|
||||
|
||||
// <EFBFBD> FCM токен диалог
|
||||
// 📱 FCM токен диалог
|
||||
var showFcmDialog by remember { mutableStateOf(false) }
|
||||
val context = LocalContext.current
|
||||
|
||||
// <EFBFBD>📬 Requests screen state
|
||||
// 📬 Requests screen state
|
||||
var showRequestsScreen by remember { mutableStateOf(false) }
|
||||
|
||||
// 🔥 Используем rememberSaveable чтобы сохранить состояние при навигации
|
||||
@@ -410,7 +416,7 @@ fun ChatsListScreen(
|
||||
}
|
||||
|
||||
// Simple background
|
||||
Box(modifier = Modifier.fillMaxSize().background(backgroundColor)) {
|
||||
Box(modifier = Modifier.fillMaxSize().background(backgroundColor).navigationBarsPadding()) {
|
||||
ModalNavigationDrawer(
|
||||
drawerState = drawerState,
|
||||
drawerContent = {
|
||||
|
||||
Reference in New Issue
Block a user