mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-03 09:26:51 +00:00
Removing static launcher activity dependency from FirstFrameAnimationHelper
Static dependency does not work in the presence of multiple activities and when the main activity is not Launcher (eg in fallback recents). Instead creating FirstFrameAnimatorHelper on demand for individual animations. Change-Id: I17bb69bbaaca92f0db994fb56fd784302c57d543
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package com.android.launcher3.anim;
|
||||
|
||||
import android.animation.ObjectAnimator;
|
||||
import android.animation.PropertyValuesHolder;
|
||||
import android.view.View;
|
||||
|
||||
@@ -44,7 +45,8 @@ public class PropertyListBuilder {
|
||||
return this;
|
||||
}
|
||||
|
||||
public PropertyValuesHolder[] build() {
|
||||
return mProperties.toArray(new PropertyValuesHolder[mProperties.size()]);
|
||||
public ObjectAnimator build(View view) {
|
||||
return ObjectAnimator.ofPropertyValuesHolder(view,
|
||||
mProperties.toArray(new PropertyValuesHolder[mProperties.size()]));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user