Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import android.graphics.Paint;
import android.graphics.Rect;
import android.graphics.drawable.Drawable;
import android.graphics.PixelFormat;

/**
* This drawable that draws a simple white and gray chessboard pattern.
Expand Down Expand Up @@ -60,7 +61,7 @@ public void draw(Canvas canvas) {

@Override
public int getOpacity() {
return 0;
return PixelFormat.UNKNOWN;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ public static int convertToColorInt(String argb) throws NumberFormatException {
argb = argb.replace("#", "");
}

int alpha = -1, red = -1, green = -1, blue = -1;
int alpha = 0, red = 0, green = 0, blue = 0;

if (argb.length() == 8) {
alpha = Integer.parseInt(argb.substring(0, 2), 16);
Expand Down