File tree 1 file changed +10
-9
lines changed
app/src/main/java/com/google/android/samples/socialite/ui/chat
1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -229,17 +229,18 @@ private fun ChatContent(
229
229
}
230
230
}
231
231
232
+ @Composable
232
233
private fun PaddingValues.copy (
233
- layoutDirection : LayoutDirection ,
234
- start : Dp ? = null ,
235
- top : Dp ? = null ,
236
- end : Dp ? = null ,
237
- bottom : Dp ? = null ,
234
+ layoutDirection : LayoutDirection = LocalLayoutDirection .current ,
235
+ start : Dp = calculateStartPadding(layoutDirection) ,
236
+ top : Dp = calculateTopPadding() ,
237
+ end : Dp = calculateEndPadding(layoutDirection) ,
238
+ bottom : Dp = calculateBottomPadding() ,
238
239
) = PaddingValues (
239
- start = start ? : calculateStartPadding(layoutDirection) ,
240
- top = top ? : calculateTopPadding() ,
241
- end = end ? : calculateEndPadding(layoutDirection) ,
242
- bottom = bottom ? : calculateBottomPadding() ,
240
+ start = start,
241
+ top = top,
242
+ end = end,
243
+ bottom = bottom,
243
244
)
244
245
245
246
@OptIn(ExperimentalMaterial3Api ::class )
You can’t perform that action at this time.
0 commit comments