How to programatically check if Bubbles are globally enabled?

118 views Asked by At

Is there an API available to check whether Bubbles are enabled from Developer Options?

There is an API NotificationManager#areBubblesAllowed (https://developer.android.com/reference/android/app/NotificationManager#areBubblesAllowed()) but this only checks Bubble permission in application level.

1

There are 1 answers

0
rin On

This gives me the correct values:

Settings.Secure.getInt(contentResolver, "notification_bubbles")

0: Disabled 1: Enabled