althaf
07/15/2021, 6:55 AMprivate fun hideDeliveryDetailsIfNotRequired() {
if (clearingZone.title == "-" && deliverMethod.title == "-"
&& deliverTo.title == "-" && pickupLocation.title == "-"
) {
clearingZone.visibility = View.GONE
deliverMethod.visibility = View.GONE
deliverTo.visibility = View.GONE
pickupLocation.visibility = View.GONE
}
}
diesieben07
07/15/2021, 6:57 AMval elements = listOf(clearingZone, deliverMethod, deliverTo, pickupLocation)
if (elements.all { it.title == "-" }) {
elements.forEach { it.visibility = View.GONE }
}
althaf
07/15/2021, 7:00 AMYernar Mendigarin
07/15/2021, 11:05 AM