diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 106cf6b..07f873c 100755 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -53,8 +53,8 @@ android { applicationId = "com.application.moviesapp" minSdk = 24 targetSdk = 33 - versionCode = 18 - versionName = "1.0.17" + versionCode = 19 + versionName = "1.0.18" testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" vectorDrawables { diff --git a/app/src/main/java/com/application/moviesapp/ui/detail/DetailScreenApp.kt b/app/src/main/java/com/application/moviesapp/ui/detail/DetailScreenApp.kt index 13c178c..14af94d 100755 --- a/app/src/main/java/com/application/moviesapp/ui/detail/DetailScreenApp.kt +++ b/app/src/main/java/com/application/moviesapp/ui/detail/DetailScreenApp.kt @@ -3,10 +3,12 @@ package com.application.moviesapp.ui.detail import android.app.Activity import androidx.compose.foundation.background import androidx.compose.foundation.clickable +import androidx.compose.foundation.interaction.MutableInteractionSource import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.PaddingValues import androidx.compose.foundation.layout.Row +import androidx.compose.foundation.layout.Spacer import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.padding @@ -103,7 +105,16 @@ fun DetailScreenApp(modifier: Modifier = Modifier, Scaffold( topBar = { DetailTopAppbar(navController = navController) }, - snackbarHost = { SnackbarHost(snackbarHostState) } + snackbarHost = { SnackbarHost(snackbarHostState) { + androidx.compose.material3.Snackbar( + modifier = modifier.padding(8.dp), + containerColor = MaterialTheme.colorScheme.background, + contentColor = MaterialTheme.colorScheme.onPrimary + ) { + Text(text = it.visuals.message, fontWeight = FontWeight.SemiBold) + } + } + } ) { paddingValues -> NavHost(navController = navController, startDestination = DetailScreen.Detail.name) { diff --git a/app/src/main/java/com/application/moviesapp/ui/home/HomeApp.kt b/app/src/main/java/com/application/moviesapp/ui/home/HomeApp.kt index 7bcbd54..693f45d 100755 --- a/app/src/main/java/com/application/moviesapp/ui/home/HomeApp.kt +++ b/app/src/main/java/com/application/moviesapp/ui/home/HomeApp.kt @@ -431,7 +431,7 @@ fun HomeApp(modifier: Modifier = Modifier, when (result) { SnackbarResult.ActionPerformed -> { navController.popBackStack() - navController.navigate(BottomNavigationScreens.Explore.route) } + navController.navigate(BottomNavigationScreens.MyList.route) } else -> { } } } }, diff --git a/app/src/main/java/com/application/moviesapp/ui/home/mylist/MyListScreen.kt b/app/src/main/java/com/application/moviesapp/ui/home/mylist/MyListScreen.kt index 8d6203f..6441ba8 100755 --- a/app/src/main/java/com/application/moviesapp/ui/home/mylist/MyListScreen.kt +++ b/app/src/main/java/com/application/moviesapp/ui/home/mylist/MyListScreen.kt @@ -138,7 +138,7 @@ fun MyListScreen(modifier: Modifier = Modifier, .fillMaxSize() .padding(horizontal = 16.dp, vertical = 4.dp) .background( - MaterialTheme.colorScheme.secondaryContainer, + MaterialTheme.colorScheme.primaryContainer, FilterChipDefaults.shape, ) ) {}