if (it.getCurrentPrice()!=null)
                  
                  
                              etPrice.setText("" + it.getCurrentPrice())
                  
                  
                  Как короче написать? по котлиновски)
                  
                  
                
it.getCurrentPrice()?.let { etPrice.setText("" + it) } // Не очень правда красиво
Обсуждают сегодня