File tree Expand file tree Collapse file tree
CodenameOne/src/com/codename1/ui/spinner Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -764,12 +764,15 @@ private Container createLightweightPopupButtonRow(final InternalPickerWidget spi
764764 $ (row ).selectAllStyles ().setMargin (0 ).setPadding (0 ).setBorder (Border .createEmpty ()).setBgTransparency (0 );
765765 }
766766 Button button = new Button (entry .text , isTablet ? "PickerButtonTablet" : "PickerButton" );
767- button .addActionListener (e -> {
768- if (entry .action != null ) {
769- entry .action .run ();
767+ button .addActionListener (new ActionListener () {
768+ @ Override
769+ public void actionPerformed (ActionEvent evt ) {
770+ if (entry .action != null ) {
771+ entry .action .run ();
772+ }
773+ spinner .setValue (value );
774+ updateValue ();
770775 }
771- spinner .setValue (value );
772- updateValue ();
773776 });
774777 row .add (button );
775778 }
You can’t perform that action at this time.
0 commit comments