reverse the order of recent colors
This commit is contained in:
parent
085b497ed0
commit
3c6e3cd0fd
1 changed files with 1 additions and 1 deletions
|
@ -165,7 +165,7 @@ class ColorPickerDialog(
|
|||
if (recentColors.isNotEmpty()) {
|
||||
recent_colors.beVisible()
|
||||
val squareSize = context.resources.getDimensionPixelSize(R.dimen.colorpicker_hue_width)
|
||||
recentColors.take(RECENT_COLORS_NUMBER).forEach { recentColor ->
|
||||
recentColors.take(RECENT_COLORS_NUMBER).reversed().forEach { recentColor ->
|
||||
val recentColorView = ImageView(context)
|
||||
recentColorView.id = View.generateViewId()
|
||||
recentColorView.layoutParams = ViewGroup.LayoutParams(squareSize, squareSize)
|
||||
|
|
Loading…
Reference in a new issue