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
This commit is contained in:
Tony Wickham
2021-12-16 18:20:46 +00:00
parent 9b3b2b9c7e
commit bf07660f9e

View File

@@ -128,6 +128,9 @@ public class MultiValueAlpha {
public void setConsumer(Consumer<Float> consumer) {
mConsumer = consumer;
if (mConsumer != null) {
mConsumer.accept(mValue);
}
}
@Override