Merge "TimePicker CTS test failing."
This commit is contained in:
committed by
Android (Google) Code Review
commit
de16e00f6d
@@ -218,9 +218,9 @@ public class TimePicker extends FrameLayout {
|
|||||||
updateAmPmControl();
|
updateAmPmControl();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
EditText amPmInput = (EditText) mAmPmSpinner.findViewById(R.id.numberpicker_input);
|
||||||
|
amPmInput.setImeOptions(EditorInfo.IME_ACTION_DONE);
|
||||||
}
|
}
|
||||||
EditText amPmInput = (EditText) mAmPmSpinner.findViewById(R.id.numberpicker_input);
|
|
||||||
amPmInput.setImeOptions(EditorInfo.IME_ACTION_DONE);
|
|
||||||
|
|
||||||
// update controls to initial state
|
// update controls to initial state
|
||||||
updateHourControl();
|
updateHourControl();
|
||||||
@@ -519,9 +519,11 @@ public class TimePicker extends FrameLayout {
|
|||||||
text = mContext.getString(R.string.time_picker_decrement_hour_button);
|
text = mContext.getString(R.string.time_picker_decrement_hour_button);
|
||||||
mHourSpinner.findViewById(R.id.decrement).setContentDescription(text);
|
mHourSpinner.findViewById(R.id.decrement).setContentDescription(text);
|
||||||
// AM/PM
|
// AM/PM
|
||||||
text = mContext.getString(R.string.time_picker_increment_set_pm_button);
|
if (mAmPmSpinner != null) {
|
||||||
mAmPmSpinner.findViewById(R.id.increment).setContentDescription(text);
|
text = mContext.getString(R.string.time_picker_increment_set_pm_button);
|
||||||
text = mContext.getString(R.string.time_picker_decrement_set_am_button);
|
mAmPmSpinner.findViewById(R.id.increment).setContentDescription(text);
|
||||||
mAmPmSpinner.findViewById(R.id.decrement).setContentDescription(text);
|
text = mContext.getString(R.string.time_picker_decrement_set_am_button);
|
||||||
|
mAmPmSpinner.findViewById(R.id.decrement).setContentDescription(text);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user