private Integer getButtonPriority ( Integer button ) { switch ( button ) { case Dialog . BUTTON_POSITIVE : return 1 ; case Dialog . BUTTON_NEUTRAL : return 2 ; case Dialog . BUTTON_NEGATIVE : return 3 ; default : return 0 ; } }
Get the proper button sorting priority