Fixed bug: sometimes exception 'view already has a child' during onResume() of the camera