Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f8e7c238 authored by tibbi's avatar tibbi
Browse files

lets rename the helper extension function to make it less confusing

parent 68114882
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@ buildscript {
        propMinSdkVersion = 16
        propTargetSdkVersion = propCompileSdkVersion
        propVersionCode = 1
        propVersionName = '3.16.18'
        propVersionName = '3.17.0'
        kotlin_version = '1.2.31'
        support_libs = '27.1.0'
    }
+1 −1
Original line number Diff line number Diff line
@@ -736,7 +736,7 @@ fun Activity.setupDialogStuff(view: View, dialog: AlertDialog, titleId: Int = 0,
    callback?.invoke()
}

fun Activity.showPickMinutesDialog(curMinutes: Int, isSnoozePicker: Boolean = false, showSecondsAtCustomDialog: Boolean = false,
fun Activity.showPickSecondsDialogHelper(curMinutes: Int, isSnoozePicker: Boolean = false, showSecondsAtCustomDialog: Boolean = false,
                                   cancelCallback: (() -> Unit)? = null, callback: (seconds: Int) -> Unit) {
    val seconds = if (curMinutes > 0) curMinutes * 60 else curMinutes
    showPickSecondsDialog(seconds, isSnoozePicker, showSecondsAtCustomDialog, cancelCallback, callback)