1
0
Fork 0

Fixes transition to browserFragment

master
Jeff Boek 2019-01-24 12:54:00 -08:00 committed by Emily Kager
parent 6587518ed6
commit 926fa22909
2 changed files with 3 additions and 3 deletions

View File

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

View File

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