mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-02 17:06:49 +00:00
Fix null-pointer exception in all set activity first reveal animation
Fixes: 259296310 Test: started all set activity and started the first reveal animation Change-Id: I371f62be81e7f28ce5ecee150abb5d294bb2264d
This commit is contained in:
@@ -920,12 +920,13 @@ public class TaskbarActivityContext extends BaseTaskbarContext {
|
||||
}
|
||||
mControllers.taskbarStashController.addUnstashToHotseatAnimation(fullAnimation, duration);
|
||||
|
||||
if (!FeatureFlags.ENABLE_ALL_APPS_BUTTON_IN_HOTSEAT.get()) {
|
||||
View allAppsButton = mControllers.taskbarViewController.getAllAppsButtonView();
|
||||
if (allAppsButton != null && !FeatureFlags.ENABLE_ALL_APPS_BUTTON_IN_HOTSEAT.get()) {
|
||||
ValueAnimator alphaOverride = ValueAnimator.ofFloat(0, 1);
|
||||
alphaOverride.setDuration(duration);
|
||||
alphaOverride.addUpdateListener(a -> {
|
||||
// Override the alpha updates in the icon alignment animation.
|
||||
mControllers.taskbarViewController.getAllAppsButtonView().setAlpha(0);
|
||||
allAppsButton.setAlpha(0);
|
||||
});
|
||||
fullAnimation.play(alphaOverride);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user