public void set24Hour ( boolean b ) { if ( m24Hour != b ) { m24Hour = b ; if ( ! m24Hour && mHour > 11 ) setHour ( mHour - 12 ) ; calculateTextLocation ( ) ; } }
Set this TimePicker use 24 - hour format or not .