Repository: Automattic/pocket-casts-android
File: wear/src/main/kotlin/au/com/shiftyjelly/pocketcasts/wear/MainActivity.kt (Kotlin)

Code before:

            composable(
                route = EffectsScreen.ROUTE,
            ) {
                EffectsScreen()
            }
        }
    }

    when (signInState) {
        is SignInState.SignedOut -> Unit // Do nothing

        is SignInState.SignedIn -> {
            val subscription = signInState.subscription
            if (subscription == null) {
                // This gets the user back to the start destination if they logged in as free. The
                // start destination should have been reset to the RequirePlusScreen already.
                signOut()
                val popped = navController.popBackStack(startDestination, inclusive = false)
                if (popped) {
                    ScrollToTop.initiate(navController)
                }
                val email = if (signInState.email.length > 16) {
                    buildString {
                        append(signInState.email.substring(0, 6))
                        append("...")
                        append(signInState.email.takeLast(6))
                    }
                } else {
                    signInState.email
                }
                val message = stringResource(LR.string.log_in_free_account, email)
                Toast.makeText(LocalContext.current, message, Toast.LENGTH_LONG).show()
            } else if (waitingForSignIn.value) {
                navController.navigate(LoggingInScreen.ROUTE)
                waitingForSignIn.value = false
            }
        }
    }
}

@Composable
fun PodcastsScreenContent(
    navController: NavHostController,
    swipeToDismissState: SwipeToDismissBoxState,
) {
    NowPlayingPager(
        navController = navController,
        swipeToDismissState = swipeToDismissState,
    ) {
        PodcastsScreen(

Review comment (suggestion):
```suggestion
                        append("…")
```

We can use ellipsis `…` instead of 3 dots `...`.

Code after:

            composable(
                route = EffectsScreen.ROUTE,
            ) {
                EffectsScreen()
            }
        }
    }

    when (signInState) {
        is SignInState.SignedOut -> Unit // Do nothing

        is SignInState.SignedIn -> {
            val subscription = signInState.subscription
            if (subscription == null) {
                // This gets the user back to the start destination if they logged in as free. The
                // start destination should have been reset to the RequirePlusScreen already.
                signOut()
                val popped = navController.popBackStack(startDestination, inclusive = false)
                if (popped) {
                    ScrollToTop.initiate(navController)
                }
                val email = if (signInState.email.length > 16) {
                    buildString {
                        append(signInState.email.substring(0, 6))
                        append("…")
                        append(signInState.email.takeLast(6))
                    }
                } else {
                    signInState.email
                }
                val message = stringResource(LR.string.log_in_free_account, email)
                Toast.makeText(LocalContext.current, message, Toast.LENGTH_LONG).show()
            } else if (waitingForSignIn.value) {
                navController.navigate(LoggingInScreen.ROUTE)
                waitingForSignIn.value = false
            }
        }
    }
}

@Composable
fun PodcastsScreenContent(
    navController: NavHostController,
    swipeToDismissState: SwipeToDismissBoxState,
) {
    NowPlayingPager(
        navController = navController,
        swipeToDismissState = swipeToDismissState,
    ) {
        PodcastsScreen(