From c84050e41f60c57a633ce2d408b81e58034c7083 Mon Sep 17 00:00:00 2001 From: "rajashakher.valluru" Date: Fri, 24 May 2019 14:43:15 +0530 Subject: [PATCH] Permission dialog --- app/src/main/java/tinny/com/runtimepermissions/MainActivity.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/tinny/com/runtimepermissions/MainActivity.kt b/app/src/main/java/tinny/com/runtimepermissions/MainActivity.kt index 3b300ad..8e3c233 100644 --- a/app/src/main/java/tinny/com/runtimepermissions/MainActivity.kt +++ b/app/src/main/java/tinny/com/runtimepermissions/MainActivity.kt @@ -50,6 +50,7 @@ class MainActivity : AppCompatActivity(), OnConfirmListener { setContentView(R.layout.activity_main) val items = ArrayList() + items.add(DialogItem(resources.getDrawable(R.mipmap.ic_launcher),title = "SMS",description = "Need this permission for read SMS",require = "required")) items.add(DialogItem(resources.getDrawable(R.mipmap.ic_launcher),title = "Contacts",description = "Need this permission for read SMS",require = "required")) items.add(DialogItem(resources.getDrawable(R.mipmap.ic_launcher),title = "Location",description = "Need this permission for read SMS",require = "optional"))