A single search toolbar is displayed in-app preview mode.
App preview shows 2 search toolbars

@abodea Does this occur often or was it a one time thing?
FWIK in recent apps Android shows a screenshot of what each app looked like when the user left.
Here I think I'm seeing that Android captured the exact moment when you were switching to edit mode to type a url and we're seeing just a frame of the animation occurring right before you left the app - probably to go to recents screen.
If opening the app from recents you would probably only see one toolbar because the animation ended.
If this is the case it's certainly an interesting issue, but "it works as expected".
@Mugurell it occurs all the time.
If opening the app from recent you would probably only see one toolbar because the animation ended.
This bug is not about that, it's just when following the steps from the description.
The top toolbar is the one from the search fragment, the bottom is from the home fragment. They are different, but visible because the search fragment is transparent above home.
Normally the bottom one is hidden by the keyboard, but the android preview hides the keyboard and so it is shown (and I guess that if you can make your keyboard transparent, it will be shown too).
The simplest solution will be to force the search activity to have an opaque view below, where the keyboard is. Or if that's not possible place it in the home fragment directly.
The "edit mode" toolbar should automatically be dismissed when the user is leaving the app.
When testing with "window animation scale 10x" I see the following:

video
The "edit mode" toolbar should automatically be dismissed when the user is leaving the app.
I cannot confirm this behaviour, but I can confirm the reported bug.
Device info: OnePlus 7T Pro McLaren, Oxygen OS 10.0.10 (Android 10)
Thank you all!
If this happens often I think we can synchronize the events / toolbars.