Bug? Two text typos in NB6

Sandman

Expert
Licensed User
Longtime User
I think I've found two typos in the NB6 class. It not in the code, just the docs. Still, it might cause confusion (it did for me), so I thought I'd report them:

B4X:
'Shows a progress bar. Cannot be used with SubText.
'Value - Current value.
'MaxValue - Maximum value.
'Indeterminate - Set to true for an indeterminate progress bar.
Public Sub Progress (Value As Int, MaxValue As Int, Indeterminate As Boolean) As NB6
    If IsBuilder Then
        NotificationBuilder.RunMethod("setProgress", Array(MaxValue, Value, Indeterminate))
    End If
    Return Me
End Sub

As best as I can tell this isn't correct. The progress bar works just fine with SubText. However, ShowWhen and SubText occupies the same space, so they can't both be used at the same time. At least as far as I can tell, on my Nexus 5X, running 8.1...

And then I saw a really tiny typo:
B4X:
'Possible values: PUBLIC, PRIVATE or SECRET
'Default value is PRIVATE.
'PRIVATE - notification content will not appear above secure lock screen. Title and icon will appear.
'PUBLIC - notification content will apear everywhere.
'SECRET - notification will not appear at all above secure lock screen.
Public Sub Visibility (Value As String) As NB6
    If IsBuilder Then
        Dim m As Map = CreateMap("PUBLIC": 1, "SECRET": -1, "PRIVATE": 0)
        Dim i As Int = m.Get(Value)
        NotificationBuilder.RunMethod("setVisibility", Array(i))
    End If
    Return Me
End Sub

The docs for PUBLIC contains the word apear.
 

Similar Threads

Top