Happens occasionally, caused by this jank. Figure out a better way to dynamically set spinner value
// Stupid hack to get this to work
final int index = hoursIndex;
mBinding.spinner.post(new Runnable() {
public void run() {
mBinding.spinner.setSelection(index);
}
});
Can't just do mBinding.spinner.setSelection(index); in onCreate since the spinner isn't initialized (getSelectedItem is null, getSelectedItemPosition is -1).
Happens occasionally, caused by this jank. Figure out a better way to dynamically set spinner value