使用产品:SuperMap iMobile 10i(2021) SP1 for Android
问题详细描述:用Fragment在AR管线与AR测量切换时,程序退出
问题重现步骤:
if ("scene".equals(type)){
FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();
if (sceneFragment == null) {
sceneFragment = new SceneFragment();
}
fragmentTransaction.add(R.id.content_framelayout, sceneFragment, "sceneFragment");
hideAllFragment(fragmentTransaction);
fragmentTransaction
.show(sceneFragment)
.commit();
}else if ("cartograph".equals(type)){
FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();
if (cartographFragment == null) {
cartographFragment = new CartographFragment();
}
fragmentTransaction.add(R.id.content_framelayout, cartographFragment, "cartographFragment");
hideAllFragment(fragmentTransaction);
fragmentTransaction
.show(cartographFragment)
.commit();
}