For most apps this is not a problem, because clicking a button takes virtually no time. But I realize that for the browser, the user may be entering a URL in the address bar for >5s. So for that case, I would have to detect when the user starts and stops interacting with items inside the toolbar, and stop the timer during interaction (and reset afterwards).
Yes, it will always hide after 5 seconds.
For most apps this is not a problem, because clicking a button takes virtually no time. But I realize that for the browser, the user may be entering a URL in the address bar for >5s. So for that case, I would have to detect when the user starts and stops interacting with items inside the toolbar, and stop the timer during interaction (and reset afterwards).