How to suppress notification on lock screen in Android 5 (Lollipop) but let it in notification area?

前端 未结 4 1636
旧巷少年郎
旧巷少年郎 2020-12-31 03:45

After upgrade to Android 5.0 Lollipop it started showing automatically ongoing notification on lock screen.

Sometimes users don\'t want to see all of them so they a

4条回答
  •  攒了一身酷
    2020-12-31 04:34

    You could set the notification's priority to PRIORITY_MIN. This should hide the notification on the lock screen. It also hides the icon from the statusbar (not sure if you want that), but the notification itself is still visible in the notification area.

提交回复
热议问题