diff --git a/app/src/main/java/org/mozilla/fenix/browser/BaseBrowserFragment.kt b/app/src/main/java/org/mozilla/fenix/browser/BaseBrowserFragment.kt index 3af8972b19..4addbb583b 100644 --- a/app/src/main/java/org/mozilla/fenix/browser/BaseBrowserFragment.kt +++ b/app/src/main/java/org/mozilla/fenix/browser/BaseBrowserFragment.kt @@ -86,6 +86,7 @@ import org.mozilla.fenix.ext.sessionsOfType import org.mozilla.fenix.ext.settings import org.mozilla.fenix.settings.SupportUtils import org.mozilla.fenix.theme.ThemeManager +import org.mozilla.fenix.utils.FragmentPreDrawManager /** * Base fragment extended by [BrowserFragment]. @@ -141,6 +142,7 @@ abstract class BaseBrowserFragment : Fragment(), UserInteractionHandler, Session } final override fun onViewCreated(view: View, savedInstanceState: Bundle?) { + FragmentPreDrawManager(this).execute {} browserInitialized = initializeUI(view) != null } diff --git a/app/src/main/java/org/mozilla/fenix/browser/BrowserFragment.kt b/app/src/main/java/org/mozilla/fenix/browser/BrowserFragment.kt index 3e2ffceff7..3ff71b5ac8 100644 --- a/app/src/main/java/org/mozilla/fenix/browser/BrowserFragment.kt +++ b/app/src/main/java/org/mozilla/fenix/browser/BrowserFragment.kt @@ -62,9 +62,6 @@ class BrowserFragment : BaseBrowserFragment(), UserInteractionHandler { ): View { val view = super.onCreateView(inflater, container, savedInstanceState) view.browserLayout.transitionName = "$TAB_ITEM_TRANSITION_NAME${getSessionById()?.id}" - - startPostponedEnterTransition() - return view } diff --git a/app/src/main/res/layout/tab_list_row.xml b/app/src/main/res/layout/tab_list_row.xml index 8ae128c329..63a4349aaf 100644 --- a/app/src/main/res/layout/tab_list_row.xml +++ b/app/src/main/res/layout/tab_list_row.xml @@ -2,91 +2,91 @@ - + + android:id="@+id/inner_layout" + android:layout_width="match_parent" + android:layout_height="match_parent"> + android:id="@+id/favicon_image" + android:layout_width="0dp" + android:layout_height="0dp" + android:layout_margin="8dp" + android:adjustViewBounds="true" + android:importantForAccessibility="no" + android:scaleType="fitCenter" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintDimensionRatio="1:1" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" /> + + - - + android:id="@+id/tab_title" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_marginStart="8dp" + android:layout_marginBottom="8dp" + android:ellipsize="end" + android:maxLines="2" + android:minLines="2" + android:textColor="?primaryText" + android:textSize="14sp" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="@id/hostname" + app:layout_constraintStart_toEndOf="@id/favicon_image" + app:layout_constraintTop_toBottomOf="@id/hostname" /> + android:id="@+id/close_tab_button" + android:layout_width="48dp" + android:layout_height="48dp" + android:alpha="0.8" + android:background="?android:attr/selectableItemBackgroundBorderless" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintTop_toTopOf="parent" + app:srcCompat="@drawable/ic_close" />