Invalidate positive button when conditions are met
In my application I have popup window with EditText field. If there is more one dot I want to invalidate positive button, mean to make it greyed out and unable to click. I looked on Java code and tried few solutions but I didn't figure out how to make it work.
My code:
fun dialogBuilder(){
var dots = 0
lateinit var inputText: String
val builder = AlertDialog.Builder(this)
builder.setTitle(getString(R.string.moneyStatus))
val input = EditText(this)...