Using Erel's NB6 library for notifications, I noticed the timestamp appearing on the corner of my notification.
I didn't want this, but couldn't see a way to suppress it, so I modified the class's ShowWhen sub as follows:
Then I just call it with n.ShowWhen(-1) to suppress the timestamp.
Hope this helps!
I didn't want this, but couldn't see a way to suppress it, so I modified the class's ShowWhen sub as follows:
B4X:
'Shows a timestamp, or hides it if the time is negative
Public Sub ShowWhen (Time As Long) As NB6
If IsBuilder Then
If Time < 0 Then
NotificationBuilder.RunMethod("setShowWhen", Array(False))
Else
NotificationBuilder.RunMethod("setShowWhen", Array(True))
NotificationBuilder.RunMethod("setWhen", Array(Time))
End If
End If
Return Me
End Sub
Then I just call it with n.ShowWhen(-1) to suppress the timestamp.
Hope this helps!