Fixes transition to browserFragment
parent
6587518ed6
commit
926fa22909
|
@ -70,7 +70,7 @@ class SearchFragment : Fragment() {
|
||||||
|
|
||||||
private fun userDidSearch() {
|
private fun userDidSearch() {
|
||||||
val extras = FragmentNavigator.Extras.Builder().addSharedElement(
|
val extras = FragmentNavigator.Extras.Builder().addSharedElement(
|
||||||
toolbar_wrapper, ViewCompat.getTransitionName(toolbar_wrapper)!!
|
toolbar, ViewCompat.getTransitionName(toolbar)!!
|
||||||
).build()
|
).build()
|
||||||
Navigation.findNavController(toolbar).navigate(R.id.action_searchFragment_to_browserFragment, null, null, extras)
|
Navigation.findNavController(toolbar).navigate(R.id.action_searchFragment_to_browserFragment, null, null, extras)
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,7 +21,6 @@
|
||||||
android:clipToPadding="false"
|
android:clipToPadding="false"
|
||||||
android:elevation="5dp"
|
android:elevation="5dp"
|
||||||
android:outlineProvider="paddedBounds"
|
android:outlineProvider="paddedBounds"
|
||||||
android:transitionName="firstTransitionName"
|
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent">
|
app:layout_constraintTop_toTopOf="parent">
|
||||||
|
@ -34,7 +33,8 @@
|
||||||
android:background="@android:color/white"
|
android:background="@android:color/white"
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
android:focusable="true"
|
android:focusable="true"
|
||||||
android:focusableInTouchMode="true" />
|
android:focusableInTouchMode="true"
|
||||||
|
android:transitionName="firstTransitionName" />
|
||||||
</FrameLayout>
|
</FrameLayout>
|
||||||
|
|
||||||
<mozilla.components.browser.awesomebar.BrowserAwesomeBar
|
<mozilla.components.browser.awesomebar.BrowserAwesomeBar
|
||||||
|
|
Loading…
Reference in New Issue