A cheap attempt at a native Bluesky client for Android
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

TimelineView: fix keyboard movement on modal

geesawra 69e3cf02 8d06aa59

+9 -4
+9 -4
app/src/main/java/industries/geesawra/jerryno/TimelineView.kt
··· 172 172 BottomSheetScaffold( 173 173 scaffoldState = scaffoldState, 174 174 sheetPeekHeight = 0.dp, 175 - modifier = Modifier.consumeWindowInsets(WindowInsets.ime), 176 175 sheetContent = { 177 176 val uploadingPost = remember { mutableStateOf(false) } 178 177 Box( 179 178 modifier = Modifier 180 179 .fillMaxWidth() 181 180 .windowInsetsPadding(WindowInsets.ime) 182 - .padding(16.dp), 181 + .consumeWindowInsets(WindowInsets.ime) 183 182 ) { 184 183 Column( 185 184 modifier = Modifier ··· 222 221 text = "${maxChars - charCount.intValue}", 223 222 color = if (postText.length > maxChars) MaterialTheme.colorScheme.error else MaterialTheme.colorScheme.onSurface 224 223 ) 225 - // return@OutlinedTextField // This return might be causing label issues, consider removing or restructuring 226 224 } else { 227 225 Text( 228 226 text = "Less cringe this time, okay?", ··· 284 282 uploadingPost.value = true 285 283 timelineViewModel.post( 286 284 postText, 287 - mediaSelected.value.keys.toList(), 285 + { 286 + val list = mediaSelected.value.keys.toList() 287 + if (list.isEmpty()) { 288 + null 289 + } else { 290 + list 291 + } 292 + }(), 288 293 null 289 294 ).onSuccess { 290 295 scaffoldState.bottomSheetState.hide()