Android Question [BUG] AS Settings - RuntimeException on Scroll

Zero7

Member
Hello,

AS Settings library (2.19) seems that have a bug with more than 15 items (or something similar).

Using the basic example (https://www.b4x.com/android/forum/attachments/as-settings-example-zip.158165/) and adding this to [B4XPage_Created] event can be reproduce the crash:

B4X:
    For i = 0 To 15
        AS_Settings1.MainPage.AddProperty_Text("Advanced","PropertyName_8","Text Example","",Null,"Test",100dip,AS_Settings1.InputType_Text)
    Next

On scroll the settings page, you will get a RuntimeExeception everytime you scroll up and down:

Rich (BB code):
(RuntimeException) java.lang.RuntimeException: Object should first be initialized (B4XView).

Any idea?
 

Alexander Stolte

Expert
Licensed User
Longtime User
I had tried to fix this before, but couldn't find a way, so I added a try catch at this point.

6 months later I have now found a solution for the problem, please test the b4xlib in the attachment.
 

Attachments

  • AS_Settings.b4xlib
    26.2 KB · Views: 11
Upvote 0
Top