private fun createPatternHash(baseColorIndex: Int): String? { var hashSource = "" + baseColorIndex + "" var count = 0 synchronized(PatternList) { for (bp in PatternList) { if (count++ != 0) { hashSource += "-" } hashSource += bp.toString() } } return hashSource }
Creates a uniq string for combination of patterns