Android Question Passcodeview

Multiverse app

Active Member
Licensed User
Longtime User
This issue is related to Passcodeview lib by @DonManfred
In the version V1.01 the event "onFail()" does not seem to get fired.

Code:
B4X:
Sub pw_onFail
    Log($"pw_onFail()"$)
End Sub

Also when the PasscodeType is 0 (adding a new passcode) and if the passcodes do not match, the app crashes leaving the log:

B4X:
*** Service (starter) Create ***
Error occurred on line: 0 (Main)
java.lang.Exception: Sub pw_onfail signature does not match expected signature.
public static anywheresoftware.b4a.pc.RemoteObject b4a.example.main_subs_0._pw_onfail() throws java.lang.Exception
class java.lang.String,

Any help will be appreciated.
 

DonManfred

Expert
Licensed User
Longtime User
onfail return a string in the event
try
B4X:
Sub pw_onFail(error As String)
    Log($"pw_onFail(${error})"$)
End Sub
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Seems like an issue in the Github project. I updated my wrapper to use the newest github project.
When playing with my Example the lib does run the WRONG or CORRECT Code animation. The numbers get shaked a bit and then marked in RED color

But i agree that it does not raise an Errorevent. It happens here too.
 
Upvote 0
Top