java - Remove fragment crash -
i add , remove fragments :
add
getsherlockactivity().getsupportfragmentmanager() .begintransaction() .setcustomanimations(r.anim.slide_in_bottom, r.anim.slide_out_top, r.anim.slide_in_top, r.anim.slide_out_bottom) .add(r.id.fragment_explore, fragment) .addtobackstack(null) .commit(); activitymain.backstack_explore.add(fragment);
remove
fragment depopfragment = backstack_explore.get(backstack_explore.size() - 1); getsupportfragmentmanager().begintransaction() .setcustomanimations(r.anim.slide_in_top, r.anim.slide_out_bottom, r.anim.slide_in_bottom, r.anim.slide_out_top) .remove(depopfragment) .commit(); backstack_explore.remove(depopfragment);
there fast slide animation. fragment comes bottom , goes bottom.
my issue when press button (depop fragment) , before animation finished touch activity appearing behind.
it gives me simple fatal signal 11 error (more on samsung galaxy s3)
any idea ?
i resolved it, related oncreateanimation() used know when animation finished
view.setlayertype(layer_type_none, null);
this line doing crash. seems related hardware acceleration , on android 4.3
see link : disable hardware acceleration, backward compatibility
Comments
Post a Comment