Google Maps Fragment is Black

58 views Asked by At

I'm having this strange issue where google maps shows up black when using it inside a persistent BottomSheet. The same map fragment used in the CoordinatorLayout works perfectly fine.

Also using app:liteMode="true" works with the persistent bottom sheet.

The code is pretty simple

    <fragment
        android:id="@+id/map"
        android:name="com.google.android.gms.maps.SupportMapFragment"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />

Map added directly to CoordinatorLayout Map added directly to CoordinatorLayout

Map added to BottomSheet Map inside BottomSheet

NOTE: It works on my emulator with API26 fine but doesn't work on any other devices and emulators.

P.S. The search at the bottom is a Persistent BottomSheet

0

There are 0 answers