theme preview: draw to bottom

This commit is contained in:
Adrian Ulrich 2016-05-29 18:52:05 +02:00
parent 09ec1cdec4
commit 0bcb76c093

View File

@ -92,7 +92,7 @@ public class PreferencesTheme extends PreferenceFragment
paint.setStyle(Paint.Style.FILL);
for (int i=1; i < colors.length; i++) {
paint.setColor(colors[i]);
canvas.drawRect(0, step*(i-1), size, step*i, paint);
canvas.drawRect(0, step*(i-1), size, size, paint);
}
Drawable d = new BitmapDrawable(mContext.getResources(), bitmap);