Bug? [EDIT]Unimportant-not reproducible [B4A] B4XPreferencesDialog, the OK V check mark in the last password or text field does not work

a6000000

Member
Licensed User
Longtime User
[EDIT]: video show bug:

Last_ok_V_bug.mp4 , bug on: Samsung Galaxy Note 4, Android 6.0.1, and Samsung Galaxy s6 edge, Android 5.1.1

- The video Last_ok_V_bug.mp4 shows the little bug. the last field reacts differently than the fields before, in the last added field below, the ok_V shows NO reaction.

- I haven't changed anything in the example ( PreferencesExample-B4A.zip ) code, only in json
[/EDIT]

Bug
found only in B4A: lib: PreferencesDialog(Ver. 1.71) -( but I think Bug is in the "Floating Text Input" )

https://www.b4x.com/android/forum/attachments/preferencesexample-b4i-zip.81851/ PreferencesExample-B4A.zip
[B4X] B4XPreferencesDialog, https://www.b4x.com/android/forum/threads/b4x-b4xpreferencesdialog-cross-platform-forms.103842/



the OK V check mark in the last password or text field does not work.
If I add a text or password field to the back, then the OK V hook in the penultimate text field works, and in the last added NOT.

ok_V_not_work.png


PreferencesExample-B4A/B4A Samples/Files/example.json :

for test, I add a Text field in json:
..
{
"title": " ",
"type": "Text",
"key": "not_used",
"required": false,
"note_for_test_added_last_text_field": "text V ok symbol no function, if last element"
}
]
}

B4X:
{
    "Version": 1.65,
    "Theme": "Light Theme",
    "Items": [
        {
            "title": "Category #1",
            "type": "Separator",
            "key": "",
            "required": false
        },
        {
            "title": "Yes or No?",
            "type": "Boolean",
            "key": "1",
            "required": false
        },
        {
            "title": "Number",
            "type": "Number",
            "key": "asdfsf",
            "required": false
        },
        {
            "options": [
                "This text is part of the template. ",
                "You can use it to provide more information."
            ],
            "title": "What is this?",
            "type": "Explanation",
            "key": "Explanation 1",
            "required": false
        },
        {
            "title": "Color",
            "type": "Color",
            "key": "Favorite Color",
            "required": false
        },
        {
            "options": [
                "100",
                "1000",
                "10"
            ],
            "title": "100 - 1000",
            "type": "Numeric Range",
            "key": "2",
            "required": false
        },
        {
            "title": "Category #2",
            "type": "Separator",
            "key": "",
            "required": false
        },
        {
            "title": "Birthday",
            "type": "Date",
            "key": "Birthday",
            "required": false
        },
        {
            "title": "Time",
            "type": "Time",
            "key": "Time",
            "required": false
        },
        {
            "title": "Category #3",
            "type": "Separator",
            "key": "",
            "required": false
        },
        {
            "options": [
                "Red",
                "Green",
                "Blue"
            ],
            "title": "Short Options",
            "type": "Short Options",
            "key": "opt1",
            "required": false
        },
        {
            "title": "Options",
            "type": "Options",
            "key": "Cities",
            "required": false
        },
        {
            "title": "Text",
            "type": "Text",
            "key": "Text",
            "required": false
        },
        {
            "title": "Password",
            "type": "Password",
            "key": "Password1",
            "required": false
        },
        {
            "title": " ",
            "type": "Text",
            "key": "test_add",
            "required": false,
            "note_for_test_added_last_text_field": "text V ok symbol no function, if last element"
        }
    ]

}
 
Last edited:

Mahares

Expert
Licensed User
Longtime User
Bug found only in B4A: lib: PreferencesDialog(Ver. 1.71) -( but I think Bug is in the "Floating Text Input" )
I tested your template and json with one of my projects with the password being the last input item and the V label for confirm works and shows as expected. Here is a screenshot/ Note I use B4XPreferenceDialog version 1.72 and XUI Vies 2.41. Are you sure you are using the latest.
 

Attachments

  • PreferenceDIalogInput102320.png
    PreferenceDIalogInput102320.png
    17.5 KB · Views: 142

a6000000

Member
Licensed User
Longtime User
[EDITED on top]: video in post 1

I haven't changed anything in the example code, only in json. see post1 PreferencesExample-B4A.zip
[/EDIT]

today new install B4J B4A
C:\java\jdk-11.0.1\bin\javac.exe
C:\Android\platforms\android-28\android.jar
PreferencesDialog(Ver. 1.72)

samesame bug, see:


 
Last edited:

Mahares

Expert
Licensed User
Longtime User
what template ??
The json string you have in your post #1. I saved it to two json files. The first one test4.json which has a text field after the password field, and test5.json file which has a password field as the last field. Please rename them to .json from .txt if you want to test them in your project. The forum does no allow json extension upload
EDIT: I had a chance to test the project you posted in post #4 and it works as supposed to. I don't see a problem. It does not look like you made any modifications to it. It is Erel's original. If you still see a problem, we will await's Erel's verdict.
 

Attachments

  • test5.txt
    2.5 KB · Views: 135
  • test4.txt
    2.8 KB · Views: 133
Last edited:

Mahares

Expert
Licensed User
Longtime User
I haven't changed anything i
It looks like you edited just about every one of your posts a day later. which makes them hard to follow. You even deleted a post or so. You are so intent to prove that a bug exists when it actually does not. I think you would have been better off if you posted the problem you had in the 'Questions' forum before jumping to a conclusion that there is a bug.
 

a6000000

Member
Licensed User
Longtime User
sorry, i tried my best and made a video of the mistake. there you can clearly see that the ok_V button does nothing in the last field.

The behavior only occurs in my environment: computer software phone? no matter what, then this whole post can be deleted and I just assume:
If I try with my other computer-software - phone ..
the last OK_V button will work
:cool:
 
Last edited:

a6000000

Member
Licensed User
Longtime User
It looks like you edited just about every one of your posts a day later. which makes them hard to follow. You even deleted a post or so. You are so intent to prove that a bug exists when it actually does not. I think you would have been better off if you posted the problem you had in the 'Questions' forum before jumping to a conclusion that there is a bug.
Dear Mahares,
thank you very much for the trouble contributing to answering, it was nice if I could still hear your opinion on my video , where you can see my bug.

Have a great day
:)
 
Top