From 6caab8dc253e0de1b0a5c471fdf3b1b550211be6 Mon Sep 17 00:00:00 2001 From: Noah Bond Date: Fri, 25 Feb 2022 11:30:12 -0800 Subject: [PATCH] [fenix] For https://github.com/mozilla-mobile/fenix/issues/23991 - Fix synced tabs error text mapping --- .../fenix/tabstray/syncedtabs/SyncedTabsIntegration.kt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/org/mozilla/fenix/tabstray/syncedtabs/SyncedTabsIntegration.kt b/app/src/main/java/org/mozilla/fenix/tabstray/syncedtabs/SyncedTabsIntegration.kt index b1acd09f38..c312342cea 100644 --- a/app/src/main/java/org/mozilla/fenix/tabstray/syncedtabs/SyncedTabsIntegration.kt +++ b/app/src/main/java/org/mozilla/fenix/tabstray/syncedtabs/SyncedTabsIntegration.kt @@ -112,17 +112,19 @@ class SyncedTabsIntegration( SyncedTabsListItem.Error(errorText = context.getString(R.string.synced_tabs_enable_tab_syncing)) SyncedTabsView.ErrorType.SYNC_NEEDS_REAUTHENTICATION -> - SyncedTabsListItem.Error(errorText = context.getString(R.string.synced_tabs_sign_in_message)) - - SyncedTabsView.ErrorType.NO_TABS_AVAILABLE -> SyncedTabsListItem.Error(errorText = context.getString(R.string.synced_tabs_reauth)) - SyncedTabsView.ErrorType.SYNC_UNAVAILABLE -> + SyncedTabsView.ErrorType.NO_TABS_AVAILABLE -> SyncedTabsListItem.Error( errorText = context.getString( R.string.synced_tabs_no_tabs_2, context.getString(R.string.app_name) ), + ) + + SyncedTabsView.ErrorType.SYNC_UNAVAILABLE -> + SyncedTabsListItem.Error( + errorText = context.getString(R.string.synced_tabs_sign_in_message), errorButton = SyncedTabsListItem.ErrorButton( buttonText = context.getString(R.string.synced_tabs_sign_in_button) ) {