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 @@ -763,12 +763,13 @@ private Container createLightweightPopupButtonRow(final InternalPickerWidget spi
763763 row .setUIID (isTablet ? "PickerButtonBarTablet" : "PickerButtonBar" );
764764 $ (row ).selectAllStyles ().setMargin (0 ).setPadding (0 ).setBorder (Border .createEmpty ()).setBgTransparency (0 );
765765 }
766- Button button = new Button (entry .text , isTablet ? "PickerButtonTablet" : "PickerButton" );
766+ final LightweightPopupButton popupButton = entry ;
767+ Button button = new Button (popupButton .text , isTablet ? "PickerButtonTablet" : "PickerButton" );
767768 button .addActionListener (new ActionListener () {
768769 @ Override
769770 public void actionPerformed (ActionEvent evt ) {
770- if (entry .action != null ) {
771- entry .action .run ();
771+ if (popupButton .action != null ) {
772+ popupButton .action .run ();
772773 }
773774 spinner .setValue (value );
774775 updateValue ();
You can’t perform that action at this time.
0 commit comments