Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0347a36 commit 3cff366Copy full SHA for 3cff366
android-pdf-viewer/src/main/java/com/github/barteksc/pdfviewer/PDFView.java
@@ -494,7 +494,12 @@ protected void onDraw(Canvas canvas) {
494
// abstraction of the screen position when rendering the parts.
495
496
// Draws background
497
- canvas.drawColor(Color.WHITE);
+ Drawable bg = getBackground();
498
+ if (bg == null) {
499
+ canvas.drawColor(Color.WHITE);
500
+ } else {
501
+ bg.draw(canvas);
502
+ }
503
504
if(recycled) {
505
return;
0 commit comments