change the condition for showOkButtonByDefault
Merge pull request #40 from androidsx/fix-show-okButton-default

change the condition for showOkButtonByDefault