mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-18 18:28:20 +00:00
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:
@@ -128,6 +128,9 @@ public class MultiValueAlpha {
|
||||
|
||||
public void setConsumer(Consumer<Float> consumer) {
|
||||
mConsumer = consumer;
|
||||
if (mConsumer != null) {
|
||||
mConsumer.accept(mValue);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user