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.
2 parents 395ceaa + 3cff366 commit 856496eCopy full SHA for 856496e
android-pdf-viewer/src/main/java/com/github/barteksc/pdfviewer/PDFView.java
@@ -508,7 +508,12 @@ protected void onDraw(Canvas canvas) {
508
// abstraction of the screen position when rendering the parts.
509
510
// Draws background
511
- canvas.drawColor(Color.WHITE);
+ Drawable bg = getBackground();
512
+ if (bg == null) {
513
+ canvas.drawColor(Color.WHITE);
514
+ } else {
515
+ bg.draw(canvas);
516
+ }
517
518
if (recycled) {
519
return;
0 commit comments