Lazarus

Programming => Operating Systems => Android => Topic started by: guaracy on October 10, 2021, 01:34:46 am

Title: [SOLVED] jMenu - CheckItemCommute always set item to checked
Post by: guaracy on October 10, 2021, 01:34:46 am
The logic is inverted and 'break' statement is missing.

code:
https://github.com/jmpessoa/lazandroidmodulewizard/blob/96e00008985c50bcc6b3ac12b89220c04f36615a/android_wizard/smartdesigner/java/jMenu.java#L94

Anyway, i think that the following code is simpler

Code: Java  [Select][+][-]
  1. if (_item.isChecked()) {
  2.     _item.setChecked(false);
  3. } else {
  4.     _item.setChecked(true);
  5. }
  6.  
Title: Re: jMenu - CheckItemCommute always set item to checked
Post by: jmpessoa on October 10, 2021, 03:57:43 am

Fixed!

Thank you!
TinyPortal © 2005-2018