BridgeLab.kt
  1. 1fun titleFrom(view: TextView): String {
  2. 2 val raw = view.text
  3. 3 return raw?.toString()?.trim().orEmpty()
  4. 4}

A Java helper at the edge

The Java method returns CharSequence. Kotlin decides what null means before the UI sees it.

Danville · educational · 2018AboutDeskFAQOffice