package com.kickstarter.libs.utils;

import android.support.annotation.ColorInt;
import android.support.annotation.NonNull;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;

import com.kickstarter.libs.ApiCapabilities;
import com.kickstarter.libs.BaseActivity;

public class StatusBarUtils {
  private StatusBarUtils() {}

  public static void apply(@NonNull final BaseActivity activity, final @ColorInt int color) {
    if (!ApiCapabilities.canSetStatusBarColor()) {
      return;
    }

    final Window window = activity.getWindow();
    window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
    window.setStatusBarColor(color);
  }

  public static void apply(@NonNull final BaseActivity activity, final @ColorInt int color,
    final boolean overlayShouldBeLight) {
    apply(activity, color);

    if (!ApiCapabilities.canSetDarkStatusBarIcons()) {
      return;
    }

    final int uiFlag = overlayShouldBeLight ?
      View.SYSTEM_UI_FLAG_VISIBLE :
      View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR;
    final Window window = activity.getWindow();
    window.getDecorView().setSystemUiVisibility(uiFlag);
  }
}

@@ -302,16 +302,22 @@
 %0Apublic 
+final 
 class St

Class is final