package com.kickstarter.libs.utils;

import android.support.annotation.NonNull;
import android.support.v7.widget.SwitchCompat;

public final class SwitchCompatUtils {
  private SwitchCompatUtils() {}

  /**
   * Set toggle state without any animations.
   */
  public static void setCheckedWithoutAnimation(final @NonNull SwitchCompat switchCompat, final boolean checked) {
    switchCompat.setChecked(checked);
    switchCompat.clearAnimation();
  }
}

@@ -119,16 +119,42 @@
 hCompat;
+%0Aimport android.view.View;
 %0A%0Apublic
@@ -393,16 +393,64 @@
 cked) %7B%0A
+    switchCompat.setVisibility(View.INVISIBLE);%0A
     swit
@@ -500,23 +500,34 @@
 pat.
-clearAnimation(
+setVisibility(View.VISIBLE
 );%0A 

Return to previous method of toggling animation state