Java 类com.bumptech.glide.request.transition.NoTransition 实例源码

项目:Orpheus    文件:PaletteableDrawableCrossFadeFactory.java   
@Override
public Transition<Palette> build(DataSource dataSource, boolean isFirstResource) {
    if (dataSource == DataSource.MEMORY_CACHE) {
        return NoTransition.get();
    } else if (isFirstResource) {
        return getFirstResourceTransition(dataSource);
    } else {
        return getSecondResourceTransition(dataSource);
    }
}
项目:GitHub    文件:TransitionOptions.java   
/**
 * Removes any existing animation put on the builder. Will be overridden by subsequent calls that
 * put an animation.
 *
 * @return This request builder.
 */
public final CHILD dontTransition() {
  return transition(NoTransition.getFactory());
}
项目:GitHub    文件:TransitionOptions.java   
/**
 * Removes any existing animation put on the builder. Will be overridden by subsequent calls that
 * put an animation.
 *
 * @return This request builder.
 */
public final CHILD dontTransition() {
  return transition(NoTransition.getFactory());
}