Skip to content

Duration picker bugs #2839

Description

@jsfan3

I noted three issues in the current implementation of the duration picker (regardless of the RFE #2832).

Test case, tested on iOS:

Form hi = new Form("Test case duration picker", BoxLayout.y());
        
        Picker nativeDurationPicker = new Picker();
        nativeDurationPicker.setUseLightweightPopup(false);
        nativeDurationPicker.setType(Display.PICKER_TYPE_DURATION);
        hi.addAll(new Label("Native duration picker"), nativeDurationPicker);
        
        Picker lightweightDurationPicker = new Picker();
        lightweightDurationPicker.setUseLightweightPopup(true);
        lightweightDurationPicker.setType(Display.PICKER_TYPE_DURATION);
        hi.addAll(new Label("Lightweight duration picker"), lightweightDurationPicker);
        
        hi.show();

Screenshot of the native picker
Issue 1: it doesn't allow to select 0h 0m, while the lightweight picker allows it
Issue 2: it doesn't allow to select a duration that is not a multiple of 5m, for example 3m
2E8F7911-AF2A-4216-A389-46B22FDD1492

Screenshot of the lightweight picker
Issue 3: it doesn't allow to select 0h 59m
0C5C794E-6502-4F4B-BA6D-0C89386F6963

Thank you for your support

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions