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

Commit 215068b2 authored by tibbi's avatar tibbi
Browse files

do not select any item on the RadioGroupDialog by default

parent 64bbaa8a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@ buildscript {
        propMinSdkVersion = 16
        propTargetSdkVersion = propCompileSdkVersion
        propVersionCode = 1
        propVersionName = '3.0.21'
        propVersionName = '3.0.22'
        kotlin_version = '1.2.0'
        support_libs = '27.0.2'
    }
+2 −2
Original line number Diff line number Diff line
@@ -13,8 +13,8 @@ import com.simplemobiletools.commons.models.RadioItem
import kotlinx.android.synthetic.main.dialog_radio_group.view.*
import java.util.*

class RadioGroupDialog(val activity: Activity, val items: ArrayList<RadioItem>, val checkedItemId: Int, val titleId: Int = 0, val callback: (newValue: Any) -> Unit) :
        RadioGroup.OnCheckedChangeListener {
class RadioGroupDialog(val activity: Activity, val items: ArrayList<RadioItem>, val checkedItemId: Int = -1, val titleId: Int = 0,
                       val callback: (newValue: Any) -> Unit) : RadioGroup.OnCheckedChangeListener {
    val dialog: AlertDialog
    var wasInit = false
    var selectedItemId = -1