package com.kickstarter.libs.utils;

import android.app.Activity;
import android.support.annotation.NonNull;
import android.util.Pair;

import com.kickstarter.R;

public final class TransitionUtils {
  public static void transition(final @NonNull Activity activity, final @NonNull Pair<Integer, Integer> transitions) {
    activity.overridePendingTransition(transitions.first, transitions.second);
  }

  public static @NonNull Pair<Integer, Integer> slideInFromRight() {
    return Pair.create(R.anim.slide_in_right, R.anim.fade_out_slide_out_left);
  }

  public static @NonNull Pair<Integer, Integer> slideInFromLeft() {
    return Pair.create(R.anim.fade_in_slide_in_left, R.anim.slide_out_right);
  }
}

@@ -193,16 +193,265 @@
 Utils %7B%0A
+  /**%0A   * Explicitly set a transition after starting an activity.%0A   *%0A   * @param activity The activity that started the new intent.%0A   * @param transition A pair of animation ids, first is the enter animation, second is the exit animation.%0A   */%0A
   public
@@ -556,17 +556,16 @@
 ansition
-s
 ) %7B%0A    
@@ -609,17 +609,16 @@
 ansition
-s
 .first, 
@@ -627,17 +627,16 @@
 ansition
-s
 .second)

Add javadoc