android - How to replace SupportMapFragment? -
platform: android sdk 17
mapbox sdk version: com.mapbox.mapboxsdk:mapbox-android-sdk:5.1.2@aar
sample code: https://github.com/tomekancu/mapboxproblem
steps trigger behavior
- create 2 fragment instances, each containing mapview.
replacing 1 fragment other.
fragmenttransaction transaction = fragmentmanager.begintransaction(); transaction.replace(r.id.fragment_container, mapviewfragmenttwo); transaction.commit();
problem occurs when < android api 18
expected behavior
replaced first fragment second
actual behavior
app crash, logcat shows 08-17 17:38:02.992 15020-15020/? a//system/bin/app_process: stack corruption detected: aborted
Comments
Post a Comment