Fixes transition to browserFragment

nightly-build-test
Jeff Boek 5 years ago committed by Emily Kager
parent 6587518ed6
commit 926fa22909

@ -70,7 +70,7 @@ class SearchFragment : Fragment() {
private fun userDidSearch() {
val extras = FragmentNavigator.Extras.Builder().addSharedElement(
toolbar_wrapper, ViewCompat.getTransitionName(toolbar_wrapper)!!
toolbar, ViewCompat.getTransitionName(toolbar)!!
).build()
Navigation.findNavController(toolbar).navigate(R.id.action_searchFragment_to_browserFragment, null, null, extras)
}

@ -21,7 +21,6 @@
android:clipToPadding="false"
android:elevation="5dp"
android:outlineProvider="paddedBounds"
android:transitionName="firstTransitionName"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
@ -34,7 +33,8 @@
android:background="@android:color/white"
android:clickable="true"
android:focusable="true"
android:focusableInTouchMode="true" />
android:focusableInTouchMode="true"
android:transitionName="firstTransitionName" />
</FrameLayout>
<mozilla.components.browser.awesomebar.BrowserAwesomeBar

Loading…
Cancel
Save