AndroidAPS/app/src/main/java/info/nightscout/androidaps/utils/UIUtils.kt

11 lines
181 B
Kotlin
Raw Normal View History

2019-12-20 23:05:35 +01:00
package info.nightscout.androidaps.utils
import android.view.View
/**
* Created by adrian on 2019-12-20.
*/
fun Boolean.toVisibility() = if (this) View.VISIBLE else View.GONE