Skip to content

Commit fbe54a2

Browse files
committed
live update permission changes
Change-Id: Iaf5acbaffa2d098f1833a99a35e9052cb5f5b769
1 parent e379d0e commit fbe54a2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

samples/user-interface/live-updates/src/main/java/com/example/platform/ui/live_updates/SnackbarNotificationManager.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,4 +258,9 @@ object SnackbarNotificationManager {
258258
}, state.delay)
259259
}
260260
}
261+
262+
@RequiresApi(Build.VERSION_CODES.BAKLAVA)
263+
fun isPostPromotionsEnabled(): Boolean {
264+
return notificationManager.canPostPromotedNotifications()
265+
}
261266
}

0 commit comments

Comments
 (0)