Huy Tran
12/12/2018, 4:22 AMprivate 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!