Program: 193146
Project: 193146
Buggy source:
private void drawableChanged(){
  if (mChanging) {
    return;
  }
  setPadding(mFramePadding.left + mBackgroundPadding.left,mFramePadding.top + mBackgroundPadding.top,mFramePadding.right + mBackgroundPadding.right,mFramePadding.bottom + mBackgroundPadding.bottom);
  requestLayout();
  invalidate();
  int opacity=PixelFormat.OPAQUE;
  if (ActivityManager.StackId.hasWindowShadow(mStackId)) {
    opacity=PixelFormat.TRANSLUCENT;
  }
 else {
    Drawable bg=getBackground();
    Drawable fg=getForeground();
    if (bg != null) {
      if (fg == null) {
        opacity=bg.getOpacity();
      }
 else       if (mFramePadding.left <= 0 && mFramePadding.top <= 0 && mFramePadding.right <= 0 && mFramePadding.bottom <= 0) {
        int fop=fg.getOpacity();
        int bop=bg.getOpacity();
        if (false)         Log.v(TAG,"String_Node_Str" + bop + "String_Node_Str"+ fop);
        if (fop == PixelFormat.OPAQUE || bop == PixelFormat.OPAQUE) {
          opacity=PixelFormat.OPAQUE;
        }
 else         if (fop == PixelFormat.UNKNOWN) {
          opacity=bop;
        }
 else         if (bop == PixelFormat.UNKNOWN) {
          opacity=fop;
        }
 else {
          opacity=Drawable.resolveOpacity(fop,bop);
        }
      }
 else {
        if (false)         Log.v(TAG,"String_Node_Str" + mFramePadding);
        opacity=PixelFormat.TRANSLUCENT;
      }
    }
    if (false)     Log.v(TAG,"String_Node_Str" + bg + "String_Node_Str"+ fg);
  }
  if (false)   Log.v(TAG,"String_Node_Str" + opacity);
  mDefaultOpacity=opacity;
  if (mFeatureId < 0) {
    mWindow.setDefaultWindowFormat(opacity);
  }
}

Fixed version (ground truth):
private void drawableChanged(){
  if (mChanging) {
    return;
  }
  setPadding(mFramePadding.left + mBackgroundPadding.left,mFramePadding.top + mBackgroundPadding.top,mFramePadding.right + mBackgroundPadding.right,mFramePadding.bottom + mBackgroundPadding.bottom);
  requestLayout();
  invalidate();
  int opacity=PixelFormat.OPAQUE;
  if (StackId.hasWindowShadow(mStackId)) {
    opacity=PixelFormat.TRANSLUCENT;
  }
 else {
    Drawable bg=getBackground();
    Drawable fg=getForeground();
    if (bg != null) {
      if (fg == null) {
        opacity=bg.getOpacity();
      }
 else       if (mFramePadding.left <= 0 && mFramePadding.top <= 0 && mFramePadding.right <= 0 && mFramePadding.bottom <= 0) {
        int fop=fg.getOpacity();
        int bop=bg.getOpacity();
        if (false)         Log.v(TAG,"String_Node_Str" + bop + "String_Node_Str"+ fop);
        if (fop == PixelFormat.OPAQUE || bop == PixelFormat.OPAQUE) {
          opacity=PixelFormat.OPAQUE;
        }
 else         if (fop == PixelFormat.UNKNOWN) {
          opacity=bop;
        }
 else         if (bop == PixelFormat.UNKNOWN) {
          opacity=fop;
        }
 else {
          opacity=Drawable.resolveOpacity(fop,bop);
        }
      }
 else {
        if (false)         Log.v(TAG,"String_Node_Str" + mFramePadding);
        opacity=PixelFormat.TRANSLUCENT;
      }
    }
    if (false)     Log.v(TAG,"String_Node_Str" + bg + "String_Node_Str"+ fg);
  }
  if (false)   Log.v(TAG,"String_Node_Str" + opacity);
  mDefaultOpacity=opacity;
  if (mFeatureId < 0) {
    mWindow.setDefaultWindowFormat(opacity);
  }
}