fix change orientation bug in FragmentA

counter will be right when device change orientation
fix change orientation bug in FragmentB

TextView in FragmentB will be update when device change orientation