Program: 38024
Project: 38024
Buggy source:
@TargetApi(Build.VERSION_CODES.JELLY_BEAN) private void SetupLookAndFeel(Context context,RemoteViews remoteViews,AppPreferences appPreferences){
  remoteViews.setInt(R.id.widget_host,"String_Node_Str",appPreferences.GetColor(Keys.WIDGET_BACKGROUND_COLOR));
  if (appPreferences.GetTheme() == 0) {
    remoteViews.setImageViewResource(R.id.widget_icon,R.drawable.ic_notification);
    remoteViews.setImageViewResource(R.id.widget_refresh,R.drawable.ic_action_refresh);
    remoteViews.setImageViewResource(R.id.widget_settings,R.drawable.ic_action_settings);
  }
 else   if (appPreferences.GetTheme() == 1) {
    remoteViews.setImageViewResource(R.id.widget_icon,R.drawable.ic_notification_light);
    remoteViews.setImageViewResource(R.id.widget_refresh,R.drawable.ic_action_refresh_light);
    remoteViews.setImageViewResource(R.id.widget_settings,R.drawable.ic_action_settings_light);
  }
  if (appPreferences.IsWidgetHeaderEnabled()) {
    remoteViews.setViewVisibility(R.id.widget_icon,View.VISIBLE);
    remoteViews.setViewVisibility(R.id.updatedTextView,View.VISIBLE);
    remoteViews.setViewVisibility(R.id.widget_refresh,View.VISIBLE);
    remoteViews.setViewVisibility(R.id.widget_settings,View.VISIBLE);
    remoteViews.setOnClickPendingIntent(R.id.widget_icon,GetPendingIntent(context.getPackageManager().getLaunchIntentForPackage(context.getPackageName()),context));
    remoteViews.setOnClickPendingIntent(R.id.widget_refresh,new Alarms(context).GetPendingIntent(context,UPDATESOURCE.WIDGET_REFRESH_BUTTON));
    remoteViews.setOnClickPendingIntent(R.id.widget_settings,GetSettingsPendingIntent(context));
  }
 else {
    remoteViews.setViewVisibility(R.id.widget_icon,View.GONE);
    remoteViews.setViewVisibility(R.id.updatedTextView,View.GONE);
    remoteViews.setViewVisibility(R.id.widget_refresh,View.GONE);
    remoteViews.setViewVisibility(R.id.widget_settings,View.GONE);
  }
  if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {
    remoteViews.setTextViewTextSize(R.id.updatedTextView,TypedValue.COMPLEX_UNIT_SP,appPreferences.GetFontSize());
  }
 else {
    remoteViews.setFloat(R.id.updatedTextView,"String_Node_Str",appPreferences.GetFontSize());
  }
  remoteViews.setTextColor(R.id.updatedTextView,appPreferences.GetColor(Keys.WIDGET_TITLE_COLOR));
}

Fixed version (ground truth):
@TargetApi(Build.VERSION_CODES.JELLY_BEAN) private void SetupLookAndFeel(Context context,RemoteViews remoteViews,AppPreferences appPreferences){
  remoteViews.setInt(R.id.widget_host,"String_Node_Str",appPreferences.GetColor(Keys.WIDGET_BACKGROUND_COLOR));
  if (appPreferences.GetTheme() == 0) {
    remoteViews.setImageViewResource(R.id.widget_icon,R.drawable.ic_notification);
    remoteViews.setImageViewResource(R.id.widget_refresh,R.drawable.ic_action_refresh);
    remoteViews.setImageViewResource(R.id.widget_settings,R.drawable.ic_action_settings);
  }
 else   if (appPreferences.GetTheme() == 1) {
    remoteViews.setImageViewResource(R.id.widget_icon,R.drawable.ic_notification_light);
    remoteViews.setImageViewResource(R.id.widget_refresh,R.drawable.ic_action_refresh_light);
    remoteViews.setImageViewResource(R.id.widget_settings,R.drawable.ic_action_settings_light);
  }
  if (appPreferences.IsWidgetHeaderEnabled()) {
    remoteViews.setViewVisibility(R.id.widget_icon,View.VISIBLE);
    remoteViews.setViewVisibility(R.id.updatedTextView,View.VISIBLE);
    remoteViews.setViewVisibility(R.id.widget_refresh,View.VISIBLE);
    remoteViews.setViewVisibility(R.id.widget_settings,View.VISIBLE);
    remoteViews.setOnClickPendingIntent(R.id.widget_icon,GetPendingIntent(context.getPackageManager().getLaunchIntentForPackage(context.getPackageName()),context));
    remoteViews.setOnClickPendingIntent(R.id.widget_refresh,new Alarms(context).GetPendingIntentWidget(context));
    remoteViews.setOnClickPendingIntent(R.id.widget_settings,GetSettingsPendingIntent(context));
  }
 else {
    remoteViews.setViewVisibility(R.id.widget_icon,View.GONE);
    remoteViews.setViewVisibility(R.id.updatedTextView,View.GONE);
    remoteViews.setViewVisibility(R.id.widget_refresh,View.GONE);
    remoteViews.setViewVisibility(R.id.widget_settings,View.GONE);
  }
  if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {
    remoteViews.setTextViewTextSize(R.id.updatedTextView,TypedValue.COMPLEX_UNIT_SP,appPreferences.GetFontSize());
  }
 else {
    remoteViews.setFloat(R.id.updatedTextView,"String_Node_Str",appPreferences.GetFontSize());
  }
  remoteViews.setTextColor(R.id.updatedTextView,appPreferences.GetColor(Keys.WIDGET_TITLE_COLOR));
}