Commit bfb36987 authored by clairehurst's avatar clairehurst 🌱 Committed by henry
Browse files

TB 44098: [android] Disable sync

#44098 Bookmarks offer a way to go to sync in 15.0a1
parent 5b1754fe
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -83,7 +83,6 @@ internal data object SearchDismissed : BookmarksAction
internal data object AddFolderClicked : BookmarksAction
internal data object CloseClicked : BookmarksAction
internal data object BackClicked : BookmarksAction
internal data object SignIntoSyncClicked : BookmarksAction
internal data class EditBookmarkClicked(val bookmark: BookmarkItem.Bookmark) : BookmarksAction
internal data class ReceivedSyncSignInUpdate(val isSignedIn: Boolean) : BookmarksAction
internal data object FirstSyncCompleted : BookmarksAction
+0 −1
Original line number Diff line number Diff line
@@ -153,7 +153,6 @@ internal class BookmarksMiddleware(
            }
            AddFolderClicked -> getNavController().navigate(BookmarksDestinations.ADD_FOLDER)
            CloseClicked -> exitBookmarks()
            SignIntoSyncClicked -> navigateToSignIntoSync()
            is EditBookmarkClicked -> getNavController().navigate(BookmarksDestinations.EDIT_BOOKMARK)
            BackClicked -> {
                when {
+0 −1
Original line number Diff line number Diff line
@@ -67,7 +67,6 @@ internal fun bookmarksReducer(state: BookmarksState, action: BookmarksAction) =
    FirstSyncCompleted,
    ViewDisposed,
    SelectFolderAction.ViewAppeared,
    SignIntoSyncClicked,
    is InitEdit,
    Init,
    PrivateBrowsingAuthorized,
+0 −28
Original line number Diff line number Diff line
@@ -1155,39 +1155,11 @@ private fun EmptyList(
            modifier = Modifier.width(FirefoxTheme.layout.size.containerMaxWidth),
            horizontalAlignment = Alignment.CenterHorizontally,
        ) {
            Image(
                painter = painterResource(state.drawableId()),
                contentDescription = null,
            )

            Spacer(modifier = Modifier.height(FirefoxTheme.layout.space.static200))

            Text(
                text = stringResource(R.string.bookmark_empty_list_title),
                color = MaterialTheme.colorScheme.onSurface,
                style = FirefoxTheme.typography.headline6,
            )

            Spacer(modifier = Modifier.height(FirefoxTheme.layout.space.static100))

            Text(
                text = stringResource(state.descriptionId()),
                color = MaterialTheme.colorScheme.onSurfaceVariant,
                style = FirefoxTheme.typography.body2,
                textAlign = TextAlign.Center,
            )

            if (state is EmptyListState.NotAuthenticated) {
                Spacer(modifier = Modifier.height(FirefoxTheme.layout.space.static300))

                FilledButton(
                    text = stringResource(R.string.bookmark_empty_list_guest_cta),
                    onClick = { dispatcher(SignIntoSyncClicked) },
                    modifier = Modifier
                        .heightIn(36.dp)
                        .fillMaxWidth(),
                )
            }
        }
    }
}
+0 −1
Original line number Diff line number Diff line
@@ -62,7 +62,6 @@ internal class BookmarksTelemetryMiddleware : Middleware<BookmarksState, Bookmar
            Init,
            is SelectFolderAction.ItemClicked,
            AddFolderAction.ParentFolderClicked,
            SignIntoSyncClicked,
            is AddFolderAction.FolderCreated,
            is AddFolderAction.TitleChanged,
            is EditBookmarkAction.TitleChanged,