Android: have back-button close tab instead of exit app

Use case or problem

On Android, I often go back to previous notes with the back-button as it is fast and acessible.
Sometimes (e.g. opening a link in a new tab) the back-button behavior changes in Obsidian. it going back is not possible (new tab) it offers to close the app on a second press of the back-button.
Instead, I think it would be more useful to close the tab instead and go back to the previously active tab.
This would be more consistent with a back-key behavior.

Proposed solution

Make the back-key close the tab if no further back-history exists. (or make this an option)

Current workaround (optional)

I try to not work in tabs at all to keep the back-button behavior consistent.
Unfortunately, opening links in Excalidraw will always open in a new tab if no modifiers are held.

Related feature requests (optional)

bug-more-consistent-back-navigation-on-android/26296
request-change-backbutton-behavior-on-android/17513