Skip to content
This repository has been archived by the owner on Jul 13, 2020. It is now read-only.

Commit

Permalink
Typo progressDialog (#487)
Browse files Browse the repository at this point in the history
Fix typo that makes indeterminateProgressDialog to create a classic progressDialog
  • Loading branch information
mrp14 authored and 4u7 committed Oct 12, 2017
1 parent e388295 commit 91cd061
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions anko/library/static/commons/src/dialogs/AndroidDialogs.kt
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ inline fun Fragment.indeterminateProgressDialog(
message: Int? = null,
title: Int? = null,
noinline init: (ProgressDialog.() -> Unit)? = null
) = activity.progressDialog(message, title, init)
) = activity.indeterminateProgressDialog(message, title, init)

fun Context.indeterminateProgressDialog(
message: Int? = null,
Expand Down Expand Up @@ -171,4 +171,4 @@ private fun Context.progressDialog(
if (title != null) setTitle(title)
if (init != null) init()
show()
}
}

0 comments on commit 91cd061

Please sign in to comment.