Commit 9bac7ef4 authored by Emily Kager's avatar Emily Kager Committed by Emily Kager
Browse files

For #8403: Don't postpone transition for view intents

parent 40031e61
......@@ -138,11 +138,23 @@ abstract class BaseBrowserFragment : Fragment(), UserInteractionHandler, Session
)
}
// We don't need to wait on shared element transitions for view intents or custom tabs
if (getSessionById()?.source == Session.Source.ACTION_VIEW ||
getSessionById()?.isCustomTabSession() == true
) {
startPostponedEnterTransition()
}
return view
}
final override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
FragmentPreDrawManager(this).execute {}
// We don't need to wait on shared element transitions for view intents or custom tabs
if (getSessionById()?.source != Session.Source.ACTION_VIEW ||
getSessionById()?.isCustomTabSession() != true
) {
FragmentPreDrawManager(this).execute {}
}
browserInitialized = initializeUI(view) != null
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment