1
0
Fork 0

For #633 - Remove only normal sessions, add a11y for glyphs

master
Jeff Boek 2019-02-27 14:37:41 -08:00
parent 416382c3ad
commit 1d4be1b665
3 changed files with 9 additions and 1 deletions

View File

@ -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()
}

View File

@ -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" />

View File

@ -152,8 +152,12 @@ people before profit. Our mission: keep the Internet open and accessible to all.
<!-- Sessions -->
<!-- Title for the list of tabs in the current session -->
<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 -->
<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 -->
<string name="favicon_content_description">Favorite icon</string>
<!-- Button in the current session menu. Deletes the session when pressed -->