Recent

Author Topic: Bug in jSeekBar.java  (Read 1967 times)

ADiV

  • Jr. Member
  • **
  • Posts: 90
    • ADiV Software
Bug in jSeekBar.java
« on: September 29, 2018, 12:55:40 pm »
Hello, this bug does not allow you to add the maximum percentage:
Code: Java  [Select][+][-]
  1. public void SetProgress(int _progress) {
  2.         if (_progress <  this.getMax())
  3.             this.setProgress(_progress);
  4.     }
  5.  

You only have to change the condition and it works correctly. Tested
Code: Java  [Select][+][-]
  1. public void SetProgress(int _progress) {
  2.         if (_progress <=  this.getMax())
  3.             this.setProgress(_progress);
  4.     }
  5.  

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: Bug in jSeekBar.java
« Reply #1 on: September 29, 2018, 07:01:32 pm »

Fixed!!!

Thank you!!!
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

neuro

  • Jr. Member
  • **
  • Posts: 62
Re: Bug in jSeekBar.java
« Reply #2 on: July 17, 2022, 03:12:37 am »
New bug in jSeekBar.
Create new empty project:
New Project -> LAMW [GUI] Android module

Add three(3) jSeekBars to main form.
The default value of jSeekBar property “Max” is 100.
Change “Max” property of one or two jSeekBars to some other value (for example 80 or 90 or 1000).
Then run menu
[LAMW] Build Android Apk and run.

The app will crash.
The app works correctly only when the property “Max” of all jSeekBars is equal 100.
When one or two jSeekBars have “Max” value different from 100, the app crashes.
This bug was not happening one year ago, however the latest LAMW has this bug in jSeekBar, which needs to be fixed.

 

TinyPortal © 2005-2018