diff --git a/app/src/main/java/org/mozilla/fenix/home/HomeFragment.kt b/app/src/main/java/org/mozilla/fenix/home/HomeFragment.kt index b20a8d2ad8..b08d34f3b5 100644 --- a/app/src/main/java/org/mozilla/fenix/home/HomeFragment.kt +++ b/app/src/main/java/org/mozilla/fenix/home/HomeFragment.kt @@ -45,7 +45,9 @@ import kotlin.math.roundToInt fun SessionBundleStorage.archive(sessionManager: SessionManager) { save(sessionManager.createSnapshot()) - sessionManager.removeAll() + sessionManager.sessions.filter { !it.private }.forEach { + sessionManager.remove(it) + } new() } diff --git a/app/src/main/res/layout/component_tabs.xml b/app/src/main/res/layout/component_tabs.xml index e73f787bc0..88ceab0894 100644 --- a/app/src/main/res/layout/component_tabs.xml +++ b/app/src/main/res/layout/component_tabs.xml @@ -30,6 +30,7 @@ android:background="?android:attr/selectableItemBackgroundBorderless" android:src="@drawable/ic_new" android:tint="?attr/toolbarTextColor" + android:contentDescription="@string/add_tab" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toStartOf="@id/tabs_overflow_button" app:layout_constraintTop_toTopOf="parent" /> @@ -41,6 +42,7 @@ android:background="?android:attr/selectableItemBackgroundBorderless" android:src="@drawable/ic_menu" android:tint="?attr/toolbarTextColor" + android:contentDescription="@string/tab_menu" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintTop_toTopOf="parent" /> diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index c0b5cdb781..52c0d3baa3 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -152,8 +152,12 @@ people before profit. Our mission: keep the Internet open and accessible to all. Current Session + + Add Tab Close tab + + Tab menu Favorite icon