@@ -15,6 +15,7 @@ import androidx.compose.animation.slideOutVertically
1515import androidx.compose.animation.togetherWith
1616import androidx.compose.foundation.background
1717import androidx.compose.foundation.layout.Box
18+ import androidx.compose.foundation.layout.PaddingValues
1819import androidx.compose.foundation.layout.WindowInsets
1920import androidx.compose.foundation.layout.fillMaxSize
2021import androidx.compose.foundation.layout.fillMaxWidth
@@ -229,15 +230,18 @@ private fun HomeScan(
229230 OnLifecycleEvent { _, event ->
230231 when (event) {
231232 Lifecycle .Event .ON_START -> {
233+ Timber .d(" onStart" )
232234 isPaused = false
233235 startScanPreview()
234236 }
235237
236238 Lifecycle .Event .ON_STOP -> {
239+ Timber .d(" onStop" )
237240 stopScanPreview()
238241 }
239242
240243 Lifecycle .Event .ON_PAUSE -> {
244+ Timber .d(" onPause" )
241245 isPaused = true
242246 homeViewModel.startSheetDismissTimer {
243247 Timber .d(" hiding from timeout" )
@@ -246,6 +250,7 @@ private fun HomeScan(
246250 }
247251
248252 Lifecycle .Event .ON_RESUME -> {
253+ Timber .d(" onResume" )
249254 isPaused = false
250255 homeViewModel.stopSheetDismissTimer()
251256 }
@@ -398,11 +403,10 @@ private fun BillContainer(
398403 }
399404
400405 HomeBill (
401- modifier = Modifier
402- .fillMaxSize()
403- .addIf(showManagementOptions) { Modifier .padding(bottom = managementHeight) },
406+ modifier = Modifier .fillMaxSize(),
404407 dismissState = billDismissState,
405408 dismissed = dismissed,
409+ contentPadding = PaddingValues (bottom = managementHeight),
406410 bill = updatedState.billState.bill,
407411 transitionSpec = {
408412 if (updatedState.presentationStyle is PresentationStyle .Slide ) {
0 commit comments