https://kotlinlang.org logo
h

Huy Tran

12/12/2018, 4:22 AM
Hi there. I’m facing a proguard setting issue This is my code
Copy code
private val onPriceButtonClick = { searchConditionId: Int?, isPriceNotification: Boolean ->
        viewModel.updatePriceNotification(searchConditionId, !isPriceNotification)
}

...
it.setOnPriceButtonClick {
       onPriceButtonClick.invoke(searchConditionId, isPriceNotification)
 }
This code works without setting proguard But after setting proguard, the value of
searchConditionId
is always
null
. Should I keep the searchConditionId and isPriceNotification attribute? Any help will be appreciated!
stackoverflow 4