且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

棒棒糖通知setVisibility()不工作?

更新时间:2022-11-17 07:59:53

您所描述的行为与我的经验,当我把我的锁屏通知preference的行为是一致的显示所有通知的内容。

The behavior you are describing is consistent with the behavior I experience when I set my lockscreen notification preference to "show all notification content."

该设置有三个选项:

  • 显示所有通知内容让所有的通知(不论知名度),有效地公开。

  • Show all notification content makes all notifications (regardless of visibility) effectively public.

隐藏敏感的通知内容尊重新的可见性类型。

Hide sensitive notification content respects the new visibility types.

不要在所有显示通知将使所有的通知有效的秘密。

Don't show notifications at all will make all notifications effectively secret.

要改变你的锁屏通知可视性的选项在声音和放大器在设备设置;通知>设备已被锁定,如下图所示。

The option to change your lockscreen notification visiblity is in the device settings under Sound & Notifications > "When device is locked", as shown below.

由于 Selvin在他的回答指出,如果设置某种隐藏敏感内容的选项才可用设备锁(例如PIN或图案锁)。如果你能与锁屏简单刷卡解锁设备,此选项不可用。

As Selvin noted in his answer, the option to hide sensitive content is only available if you have set some sort of device lock (such as a PIN or pattern lock). If you can unlock your device with a simple swipe of the lockscreen, this option is not available.

棒棒糖通知setVisibility()不工作?