Lazarus

Programming => Operating Systems => Android => Topic started by: Dio Affriza on November 13, 2019, 11:06:57 am

Title: (solved) LAMW: jSwitchButton causes app to stop working
Post by: Dio Affriza on November 13, 2019, 11:06:57 am
I just use jSwitchButton.IsChecked(), and the app just crashed and stop working, the weird thing is I can use jSwitchButton.SetChecked().
Title: Re: LAMW: jSwitchButton causes app to stop working
Post by: Dio Affriza on November 13, 2019, 11:24:27 am
Solved, I just create my own function.
Code: Pascal  [Select][+][-]
  1. function jSwitchButton.Switched: boolean;
  2. begin
  3.   if FSwitchState = tsOn then
  4.     Result := True
  5.   else
  6.     Result := False;
  7. end;
  8.  
Title: Re: LAMW: jSwitchButton causes app to stop working
Post by: ADiV on November 14, 2019, 09:01:21 am
Fixed "jSwitchButton.java"
Title: Re: LAMW: jSwitchButton causes app to stop working
Post by: Dio Affriza on November 14, 2019, 08:12:04 pm
Thankyou, finally someone replying. :)

Just created 3 topics, hundred reads, no reply, and I feel nobody cares.  :( I even made a suggestion to LAMW, and nobody gives an opinion.
Title: Re: LAMW: jSwitchButton causes app to stop working
Post by: ADiV on November 15, 2019, 07:59:08 am
I understand you, the same thing happened to me several times. In the end I had to solve the problems myself.
Title: Re: (solved) LAMW: jSwitchButton causes app to stop working
Post by: Dio Affriza on November 16, 2019, 04:45:37 am
I understand you, the same thing happened to me several times. In the end I had to solve the problems myself.
Yeah, I remember this topic https://forum.lazarus.freepascal.org/index.php/topic,46573.0.html, I just created my own LAMW repository with a silly approach, like trying to add try-except on every LAMW component event. Hahaha...
TinyPortal © 2005-2018