Bug? Two text typos in NB6

Discussion in 'Bugs & wishlist' started by Sandman, Jun 3, 2018.

Tags:
  1. Sandman

    Sandman Well-Known Member Licensed 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:

    Code:
    '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:
    Code:
    '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 StringAs 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.
     
    Erel likes this.
  2. Erel

    Erel Administrator Staff Member Licensed User

    Sandman likes this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice