Skip to content

Demonstrator for the "Black Screen Bug" on Android 12 when showing incoming notifications

Notifications You must be signed in to change notification settings

mopfattn/android-nbsb

Repository files navigation

Notification Black Screen Bug (NBSB)

This app shows how to reproduce the black screen bug on incoming notifications.

To reproduce this issue perform the following steps:

  1. Install and launch this app. Dragging down the notification drawer and showing a notification works as expected. Screenshots: Notifications ok, Notification drawer ok

  2. Keep the app in foreground, lock the display and unlock it. Try to show the notification again. Now the rest of the screen is black. Dragging down the notification drawer also shows a black background. Screenshots: Notifications error, Notification drawer error

  3. Put the app into background, lock and unlock the display. Now everything is ok.

Notice: In this case this issue only occurs when the activity has called setShowWhenLocked(true), see MainActivity.onCreate.

Black screen bug after unlock

About

Demonstrator for the "Black Screen Bug" on Android 12 when showing incoming notifications

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages