use of com.android.launcher3.util.MultiValueAlpha.AlphaProperty in project android_packages_apps_Launcher3 by crdroidandroid.
the class Launcher method finishFirstPageBind.
@Override
public void finishFirstPageBind(final ViewOnDrawExecutor executor) {
AlphaProperty property = mDragLayer.getAlphaProperty(ALPHA_INDEX_LAUNCHER_LOAD);
if (property.getValue() < 1) {
ObjectAnimator anim = ObjectAnimator.ofFloat(property, MultiValueAlpha.VALUE, 1);
if (executor != null) {
anim.addListener(new AnimatorListenerAdapter() {
@Override
public void onAnimationEnd(Animator animation) {
executor.onLoadAnimationCompleted();
}
});
}
anim.start();
} else if (executor != null) {
executor.onLoadAnimationCompleted();
}
}
Aggregations