Fix issue: The input value was not applied if dialog closes while keyboa...

Hi, I found a issue of NumberPickerDialog and NumberPickerPrefercence.

Editing the numbers from keyboard, and then close the dialog with positive button, but the inputs are not applied if you don't hide the keyboard. And the keyboard is still remain visible after the dialog closed if PreferenceActivity has a "android:windowSoftInputMode" property.