Closed Bug 1184843 Opened 9 years ago Closed 3 years ago

[DateTimePicker] <input type=time> can't prevent inputting invalid value.

Categories

(Firefox for Android Graveyard :: General, defect)

42 Branch
defect
Not set
normal

Tracking

(firefox42 affected)

RESOLVED INCOMPLETE
Tracking Status
firefox42 --- affected

People

(Reporter: mantaroh, Unassigned)

References

()

Details

This bug forked bug 1177510.

Current implementation is not prevent inputting invalid value.
It is notifying using by red frame.
(e.g. invalid value that out of range min/max attribute.)

bug 1177510(Comment #7/#8) mentioned that it is better for prevent bad value.

I think that should modify time input mechanism.

Current implementation is using TimePicker(Pure Android Widget).[1]
It is not support max/min attribute.
So It is necessary to implement onTimeChanedListener in order to check out of min/max range.[2]

Otherwise it is necessary to use the DateTimePicker.[3]
The DateTimePicker prepared TIME state.[4]
However It is work in progress for implementation.
If use DateTimePicker, We should implement the TIME code.

[1] http://developer.android.com/reference/android/widget/TimePicker.html
[2] http://developer.android.com/reference/android/widget/TimePicker.OnTimeChangedListener.html
[3] http://mxr.mozilla.org/mozilla-central/source/mobile/android/base/widget/DateTimePicker.java
[4] http://mxr.mozilla.org/mozilla-central/source/mobile/android/base/widget/DateTimePicker.java#97
We have completed our launch of our new Firefox on Android. The development of the new versions use GitHub for issue tracking. If the bug report still reproduces in a current version of [Firefox on Android nightly](https://play.google.com/store/apps/details?id=org.mozilla.fenix) an issue can be reported at the [Fenix GitHub project](https://github.com/mozilla-mobile/fenix/). If you want to discuss your report please use [Mozilla's chat](https://wiki.mozilla.org/Matrix#Connect_to_Matrix) server https://chat.mozilla.org and join the [#fenix](https://chat.mozilla.org/#/room/#fenix:mozilla.org) channel.
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → INCOMPLETE
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.