private fun loadAppThemeDefaults() { val typedValue = TypedValue() val a = context!!.obtainStyledAttributes( typedValue.data, intArrayOf(attr.colorAccent, attr.textColorPrimary, attr.colorControlNormal) ) dialColor = a.getColor(0, dialColor) textColor = a.getColor(1, textColor) clockColor = a.getColor(2, clockColor) a.recycle() }
Sets default theme attributes for picker These will be used if picker 's attributes are'nt set