1
0
Fork 0

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

master
Emily Kager 2020-02-13 09:34:40 -08:00 committed by Emily Kager
parent 40031e6130
commit 9bac7ef47b
1 changed files with 13 additions and 1 deletions

View File

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