nuhkoca
val scale = when (Resources.getSystem().displayMetrics.densityDpi) { DENSITY_MEDIUM -> 1 ... else -> 1 }
val scale = when (Resources.getSystem().displayMetrics.densityDpi) { DENSITY_LOW..DENSITY_MEDIUM -> 1 -> // compile error ... else -> 1 }
Incompatible types: IntRange and Int
Luke
in DENSITY_LOW..DENSITY_MEDIUM -> ...
A modern programming language that makes developers happier.