private void checkChildrenCount ( ) { if ( getChildCount ( ) != 2 ) Log . e ( getResources ( ) . getString ( R . string . tag ) , getResources ( ) . getString ( R . string . wrong_number_children_error ) ) ; }
Checks if children number is correct and logs an error if it is not