Ofir Bar
Elvis operator always returns the left operand of non-nullable String
condition currentUser?.office?.name.toString() is always 'true'
Kiss Budai Matyas
null
…name?.toString()
,
<string name="main_profile_lawyer_title">עו"ד %1$s %2$s</string>
fpTitleTextView.text = getString(R.string.main_profile_lawyer_title,currentUser?.firstName, currentUser?.lastName) ?: "SOME DEFAULT STRING"
A modern programming language that makes developers happier.