Handle notification permission
This commit is contained in:
parent
bb051e3811
commit
74cc5f99b1
2 changed files with 4 additions and 0 deletions
|
|
@ -158,6 +158,9 @@ class MainActivity : SimpleActivity() {
|
|||
handlePermission(PERMISSION_SEND_SMS) {
|
||||
if (it) {
|
||||
handlePermission(PERMISSION_READ_CONTACTS) {
|
||||
handleNotificationPermission { granted ->
|
||||
if (!granted) toast(R.string.no_post_notifications_permissions)
|
||||
}
|
||||
initMessenger()
|
||||
bus = EventBus.getDefault()
|
||||
try {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue