From 59a2b2ad478b29d81f1a5e631d9c149ff5010ec2 Mon Sep 17 00:00:00 2001 From: Ankit Suda Date: Sun, 27 Nov 2022 20:23:42 +0530 Subject: [PATCH] Fix plates screen launch --- .../rebound/ui/customizeplates/CustomizePlatesScreen.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/ui-customize-plates/src/main/java/com/ankitsuda/rebound/ui/customizeplates/CustomizePlatesScreen.kt b/modules/ui-customize-plates/src/main/java/com/ankitsuda/rebound/ui/customizeplates/CustomizePlatesScreen.kt index 70be2a96..489cc413 100644 --- a/modules/ui-customize-plates/src/main/java/com/ankitsuda/rebound/ui/customizeplates/CustomizePlatesScreen.kt +++ b/modules/ui-customize-plates/src/main/java/com/ankitsuda/rebound/ui/customizeplates/CustomizePlatesScreen.kt @@ -15,6 +15,7 @@ package com.ankitsuda.rebound.ui.customizeplates import androidx.compose.foundation.background +import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.items @@ -70,6 +71,10 @@ fun CustomizePlatesScreen( viewModel.deletePlate(id) } ) + } ?: run { + Box(modifier = Modifier + .fillMaxSize() + .background(ReboundTheme.colors.background)) } }