Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.Text
import androidx.compose.material3.adaptive.ExperimentalMaterial3AdaptiveApi
import androidx.compose.material3.adaptive.navigation3.ListDetailSceneStrategy
import androidx.compose.material3.adaptive.navigation3.rememberListDetailSceneStrategy
import androidx.compose.runtime.Composable
import androidx.compose.runtime.CompositionLocalProvider
import androidx.compose.runtime.LaunchedEffect
Expand Down Expand Up @@ -120,7 +118,6 @@ fun MainNavigation(
NavDisplay(
backStack = backStack,
onBack = { repeat(it) { backStack.removeLastOrNull() } },
sceneStrategy = rememberListDetailSceneStrategy(),
entryDecorators = listOf(
sharedEntryInSceneNavEntryDecorator,
rememberSceneSetupNavEntryDecorator(),
Expand All @@ -139,7 +136,6 @@ fun MainNavigation(

is Pane.ChatsList -> NavEntry(
key = backStackKey,
metadata = ListDetailSceneStrategy.listPane(),
) {
ChatList(
onOpenChatRequest = { request ->
Expand All @@ -157,7 +153,6 @@ fun MainNavigation(

is Pane.ChatThread -> NavEntry(
key = backStackKey,
metadata = ListDetailSceneStrategy.detailPane(),
) {
ChatScreen(
chatId = backStackKey.chatId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,6 @@ import com.google.android.samples.socialite.model.Contact
import com.google.android.samples.socialite.ui.SocialTheme
import com.google.android.samples.socialite.ui.chat.component.InputBar
import com.google.android.samples.socialite.ui.chat.component.MessageBubble
import com.google.android.samples.socialite.ui.chat.component.mediaItemDropTarget
import com.google.android.samples.socialite.ui.chat.component.scrollWithKeyboards
import com.google.android.samples.socialite.ui.components.tryRequestFocus
import com.google.android.samples.socialite.ui.rememberIconPainter

Expand Down Expand Up @@ -185,10 +183,6 @@ private fun ChatContent(
Scaffold(
modifier = modifier
.nestedScroll(scrollBehavior.nestedScrollConnection)
.scrollWithKeyboards(
scrollState = scrollState,
coroutineScope = rememberCoroutineScope(),
)
.focusProperties {
onEnter = {
focusRequester.tryRequestFocus().onFailure { }
Expand All @@ -204,7 +198,7 @@ private fun ChatContent(
},
) { innerPadding ->
Column(
modifier = Modifier.mediaItemDropTarget(onMediaItemAttached = onMediaItemAttached),
// TODO: Add drag and drop support

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The mediaItemDropTarget functionality for dragging and dropping media items onto the chat area has been removed and replaced with a TODO comment. This is a clear removal of a user-facing feature. The TODO is a good way to track its potential re-implementation.

) {
val layoutDirection = LocalLayoutDirection.current
MessageList(
Expand Down

This file was deleted.

Loading
Loading