package fr.tvbarthel.apps.devredpe2014.ui;


import android.app.ActionBar;
import android.content.Context;
import android.text.SpannableString;
import android.text.Spanned;
import android.text.style.ForegroundColorSpan;
import android.text.style.TypefaceSpan;

import fr.tvbarthel.apps.devredpe2014.R;

public class ActionBarHelper {

    public static void setDevredTitle(Context context, ActionBar actionBar) {
        if (actionBar != null) {
            SpannableString title = new SpannableString(context.getString(R.string.app_name).toUpperCase());
            TypefaceSpan typefaceSpanLight = new TypefaceSpan("sans-serif-light");
            ForegroundColorSpan foregroundColorSpan = new ForegroundColorSpan(context.getResources().getColor(android.R.color.holo_red_dark));
            title.setSpan(typefaceSpanLight, 0, title.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
            title.setSpan(foregroundColorSpan, title.length() - 4, title.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
            actionBar.setTitle(title);
        }
    }
}

@@ -303,16 +303,22 @@
 %0Apublic 
+final 
 class Ac
@@ -1051,11 +1051,81 @@
  %7D%0A    %7D
+%0A%0A    // Non instantiable class.%0A    private ActionBarHelper() %7B%0A    %7D
 %0A%7D%0A

Make helper class final and non-instantiable