simonpoole / OpeningHoursFragment

Android UI element for displaying and editing an opening hours value
MIT License
9 stars 2 forks source link

Reparse text input after interaction #37

Open HolgerJeromin opened 5 years ago

HolgerJeromin commented 5 years ago

Above the gui is an editable text input. Every change is reparsed and auto corrected after each char change. For example ´08:00-12:00´ Adding a comma after it, the empty rule is detected and removed. So my new comma is killed while typing.

simonpoole commented 5 years ago

Type faster :-) (there is on purpose a slight delay before the input is reparsed it is not character by character).

Seriously adding the , will create a new rule field (with the correct semantics, you should add the required fields to it via the menus.

Essentially the text field is there for initial clean up of non-parseable stuff and to correct minor typos, it is not really conceived as a way to input a complete OH value.

HolgerJeromin commented 5 years ago

Type faster :-)

Sorry, i am not able to enter a valid rule in < 300 ms. :-)

Essentially the text field is there for initial clean up of non-parseable stuff and to correct minor typos, it is not really conceived as a way to input a complete OH value.

Hm. You are right. There we need the direct parse :-|