Maybe fixed rotation crash

This fix should prevent the orientation from changing in onResume