Program: 94099
Project: 94099
Buggy source:
public static void addShareIcon(final XC_InitPackageResources.InitPackageResourcesParam resparam){
  resparam.res.hookLayout(Common.PACKAGE_SNAP,"String_Node_Str","String_Node_Str",new XC_LayoutInflated(){
    public void handleLayoutInflated(    LayoutInflatedParam liparam) throws Throwable {
      final RelativeLayout relativeLayout=(RelativeLayout)liparam.view.findViewById(liparam.res.getIdentifier("String_Node_Str","String_Node_Str",Common.PACKAGE_SNAP));
      final RelativeLayout.LayoutParams layoutParams=new RelativeLayout.LayoutParams((int)resparam.res.getDimension(resparam.res.getIdentifier("String_Node_Str","String_Node_Str",Common.PACKAGE_SNAP)),(int)resparam.res.getDimension(resparam.res.getIdentifier("String_Node_Str","String_Node_Str",Common.PACKAGE_SNAP)));
      layoutParams.addRule(RelativeLayout.ALIGN_PARENT_RIGHT);
      layoutParams.rightMargin=px(50);
      layoutParams.topMargin=px(12);
      upload=new ImageButton(HookMethods.SnapContext);
      upload.setLayoutParams(layoutParams);
      upload.setBackgroundColor(0);
      Drawable uploadimg=HookMethods.SnapContext.getResources().getDrawable(+(int)Long.parseLong(Obfuscator.sharing.UPLOAD_ICON.substring(2),16));
      upload.setImageDrawable(uploadimg);
      upload.setScaleX((float)0.55);
      upload.setScaleY((float)0.55);
      upload.setOnClickListener(new View.OnClickListener(){
        @Override public void onClick(        View v){
          Intent launchIntent=new Intent(Intent.ACTION_RUN);
          launchIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);
          launchIntent.setComponent(new ComponentName("String_Node_Str","String_Node_Str"));
          HookMethods.context.startActivity(launchIntent);
        }
      }
);
      relativeLayout.addView(upload);
    }
  }
);
}

Fixed version (ground truth):
public static void addShareIcon(final XC_InitPackageResources.InitPackageResourcesParam resparam){
  resparam.res.hookLayout(Common.PACKAGE_SNAP,"String_Node_Str","String_Node_Str",new XC_LayoutInflated(){
    public void handleLayoutInflated(    LayoutInflatedParam liparam) throws Throwable {
      final RelativeLayout relativeLayout=(RelativeLayout)liparam.view.findViewById(liparam.res.getIdentifier("String_Node_Str","String_Node_Str",Common.PACKAGE_SNAP));
      final RelativeLayout.LayoutParams layoutParams=new RelativeLayout.LayoutParams((int)resparam.res.getDimension(resparam.res.getIdentifier("String_Node_Str","String_Node_Str",Common.PACKAGE_SNAP)),(int)resparam.res.getDimension(resparam.res.getIdentifier("String_Node_Str","String_Node_Str",Common.PACKAGE_SNAP)));
      layoutParams.addRule(RelativeLayout.ALIGN_PARENT_RIGHT);
      layoutParams.rightMargin=px(50);
      layoutParams.topMargin=px(12);
      upload=new ImageButton(HookMethods.SnapContext);
      upload.setLayoutParams(layoutParams);
      upload.setBackgroundColor(0);
      Drawable uploading=HookMethods.SnapContext.getResources().getDrawable(+(int)Long.parseLong(Obfuscator.sharing.UPLOAD_ICON.substring(2),16));
      upload.setImageDrawable(uploading);
      upload.setScaleX((float)0.55);
      upload.setScaleY((float)0.55);
      upload.setOnClickListener(new View.OnClickListener(){
        @Override public void onClick(        View v){
          Intent launchIntent=new Intent(Intent.ACTION_RUN);
          launchIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);
          launchIntent.setComponent(new ComponentName("String_Node_Str","String_Node_Str"));
          HookMethods.context.startActivity(launchIntent);
        }
      }
);
      relativeLayout.addView(upload);
    }
  }
);
}