For #633 - Remove only normal sessions, add a11y for glyphs
parent
416382c3ad
commit
1d4be1b665
|
@ -45,7 +45,9 @@ import kotlin.math.roundToInt
|
||||||
|
|
||||||
fun SessionBundleStorage.archive(sessionManager: SessionManager) {
|
fun SessionBundleStorage.archive(sessionManager: SessionManager) {
|
||||||
save(sessionManager.createSnapshot())
|
save(sessionManager.createSnapshot())
|
||||||
sessionManager.removeAll()
|
sessionManager.sessions.filter { !it.private }.forEach {
|
||||||
|
sessionManager.remove(it)
|
||||||
|
}
|
||||||
new()
|
new()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -30,6 +30,7 @@
|
||||||
android:background="?android:attr/selectableItemBackgroundBorderless"
|
android:background="?android:attr/selectableItemBackgroundBorderless"
|
||||||
android:src="@drawable/ic_new"
|
android:src="@drawable/ic_new"
|
||||||
android:tint="?attr/toolbarTextColor"
|
android:tint="?attr/toolbarTextColor"
|
||||||
|
android:contentDescription="@string/add_tab"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toStartOf="@id/tabs_overflow_button"
|
app:layout_constraintEnd_toStartOf="@id/tabs_overflow_button"
|
||||||
app:layout_constraintTop_toTopOf="parent" />
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
@ -41,6 +42,7 @@
|
||||||
android:background="?android:attr/selectableItemBackgroundBorderless"
|
android:background="?android:attr/selectableItemBackgroundBorderless"
|
||||||
android:src="@drawable/ic_menu"
|
android:src="@drawable/ic_menu"
|
||||||
android:tint="?attr/toolbarTextColor"
|
android:tint="?attr/toolbarTextColor"
|
||||||
|
android:contentDescription="@string/tab_menu"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent" />
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
|
@ -152,8 +152,12 @@ people before profit. Our mission: keep the Internet open and accessible to all.
|
||||||
<!-- Sessions -->
|
<!-- Sessions -->
|
||||||
<!-- Title for the list of tabs in the current session -->
|
<!-- Title for the list of tabs in the current session -->
|
||||||
<string name="tabs_header_title">Current Session</string>
|
<string name="tabs_header_title">Current Session</string>
|
||||||
|
<!-- Content description (not visible, for screen readers etc.): Add tab button. Adds a news tab when pressed -->
|
||||||
|
<string name="add_tab">Add Tab</string>
|
||||||
<!-- Content description (not visible, for screen readers etc.): Close tab button. Closes the current session when pressed -->
|
<!-- Content description (not visible, for screen readers etc.): Close tab button. Closes the current session when pressed -->
|
||||||
<string name="close_tab">Close tab</string>
|
<string name="close_tab">Close tab</string>
|
||||||
|
<!-- Content description (not visible, for screen readers etc.): Opens the tab menu when pressed -->
|
||||||
|
<string name="tab_menu">Tab menu</string>
|
||||||
<!-- Content description (not visible, for screen readers etc.): Close tab button. Favicon for the session's site -->
|
<!-- Content description (not visible, for screen readers etc.): Close tab button. Favicon for the session's site -->
|
||||||
<string name="favicon_content_description">Favorite icon</string>
|
<string name="favicon_content_description">Favorite icon</string>
|
||||||
<!-- Button in the current session menu. Deletes the session when pressed -->
|
<!-- Button in the current session menu. Deletes the session when pressed -->
|
||||||
|
|
Loading…
Reference in New Issue