For #10201 - Provide proper button padding and no tabs message visibility in tabs tray
This commit is contained in:
parent
87c95a64d3
commit
6afcd2cee6
|
@ -217,7 +217,8 @@ class TabTrayFragment : Fragment(R.layout.fragment_tab_tray), TabsTray.Observer,
|
|||
private fun onTabsChanged() {
|
||||
val hasNoTabs = getListOfSessions().toList().isEmpty()
|
||||
|
||||
view?.tab_tray_empty_view?.isVisible = !hasNoTabs
|
||||
view?.tab_tray_empty_view?.isVisible = hasNoTabs
|
||||
view?.tabsTray?.asView()?.isVisible = !hasNoTabs
|
||||
view?.save_to_collection_button?.isVisible = !hasNoTabs
|
||||
|
||||
if (hasNoTabs) {
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:mozac="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
|
@ -41,8 +40,8 @@
|
|||
android:id="@+id/save_to_collection_button"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingStart="16dp"
|
||||
android:paddingEnd="16dp"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
app:layout_constraintBottom_toTopOf="@id/bottomBarShadow"
|
||||
app:layout_constraintTop_toBottomOf="@+id/tabsTray" />
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user