@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); } }
/** * 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()); }