Add app permission sheet

This commit is contained in:
Rahul Kumar Patel
2021-02-27 01:01:20 +05:30
parent 13a7a3b179
commit 8ebb362f58
16 changed files with 635 additions and 9 deletions

View File

@@ -40,7 +40,7 @@ fun Context.showDialog(@StringRes titleId: Int, @StringRes messageId: Int) {
}
}
fun Context.showDialog(title: String, message: String) {
fun Context.showDialog(title: String?, message: String?) {
runOnUiThread {
val backgroundColor: Int = getStyledAttributeColor(android.R.attr.colorBackground)
val builder = MaterialAlertDialogBuilder(this).apply {