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

Commit bf07660f authored by Tony Wickham's avatar Tony Wickham
Browse files

Update hotseat alpha in TaskbarLauncherStateController#init()

Technically the consumer should do that already, but the consumer isn't called if the value isn't changed (in this case, it's going from 1 to 1). So explicitly call the consumer once in init().

Test: Open an app, toggle dark theme from quick settings, go home and ensure hotseat isn't visible during the transition
Fixes: 211002647
Change-Id: I5a9680282b3982d9b6f982833cd671b224767518
parent 9b3b2b9c
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -128,6 +128,9 @@ public class MultiValueAlpha {

        public void setConsumer(Consumer<Float> consumer) {
            mConsumer = consumer;
            if (mConsumer != null) {
                mConsumer.accept(mValue);
            }
        }

        @Override