Keyboard breaks google maps on android

I have an app that has a google map in one view, and in another view it has an input text for searching.

On android, when I tap the text field it brings up the keyboard. Then if I go back to the map after that, it will look like this:


For some weird reason, closing the keyboard makes the map break.

Here’s a barebone project to illustrate the problem:

PS: this gentleman had the same issue: Keyboard retraction breaks Google Maps?

Any help is appreciated. Thanks in advance.