Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a7abe2d1 authored by Moez Bhatti's avatar Moez Bhatti
Browse files

Show appropriate color selection page by default

parent 08307462
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -519,6 +519,7 @@ public class ThemeManager {
            }
        });

        int swatchColor = getSwatchColor(getColor());
        holder.mPalette.init(19, 4, color -> {
            holder.mPalette.init(getSwatch(color).length, 4, color2 -> {
                setActiveColor(color2);
@@ -527,7 +528,11 @@ public class ThemeManager {
            });
            holder.mPalette.drawPalette(getSwatch(color), getColor());
        });
        holder.mPalette.drawPalette(PALETTE, getSwatchColor(getColor()));
        holder.mPalette.drawPalette(PALETTE, swatchColor);

        if (swatchColor == getColor()) { // If the current theme was set from the RGB picker, show that page instead
            holder.mPager.setCurrentItem(1);
        }


        SeekBar.OnSeekBarChangeListener seekListener = new SeekBar.OnSeekBarChangeListener() {