mirror of
https://github.com/SimpleMobileTools/Simple-SMS-Messenger.git
synced 2025-06-05 21:49:22 +02:00
make the new code a bit more readable
This commit is contained in:
@@ -159,8 +159,11 @@ class MainActivity : SimpleActivity() {
|
|||||||
if (it) {
|
if (it) {
|
||||||
handlePermission(PERMISSION_READ_CONTACTS) {
|
handlePermission(PERMISSION_READ_CONTACTS) {
|
||||||
handleNotificationPermission { granted ->
|
handleNotificationPermission { granted ->
|
||||||
if (!granted) toast(R.string.no_post_notifications_permissions)
|
if (!granted) {
|
||||||
|
toast(R.string.no_post_notifications_permissions)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
initMessenger()
|
initMessenger()
|
||||||
bus = EventBus.getDefault()
|
bus = EventBus.getDefault()
|
||||||
try {
|
try {
|
||||||
|
Reference in New Issue
Block a user