title: Android TimePicker inside PreferenceDialog resets hour and minute display to 0 although values are as expected
body: <p>I wrote a custom PreferenceDialog that includes two TimePickers, an EditText, a few CheckBoxes, and a scrollview parent.</p>
  
  <p>Everything works fine, but when the screen orientation changes the timepickers reset to 0 while the other controls retain their state.  The values returned by getCurrentHour and getCurrentMinute are the expected values even after the orientation change.</p>
  
  <p>If you scroll up and down the timepickers will eventually redraw and display the correct numbers.  Also, if you manually change from 24 hour format to 12 hour format (or vice versa) the timepickers will display the correct value.</p>
  
  <p>Does anyone have an idea on what's going on?</p>