Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 856496e

Browse files
committed
Merge branch 'patch-1' of https://github.com/Miha-x64/AndroidPdfViewer into Miha-x64-patch-1
2 parents 395ceaa + 3cff366 commit 856496e

File tree

1 file changed

+6
-1
lines changed
  • android-pdf-viewer/src/main/java/com/github/barteksc/pdfviewer

1 file changed

+6
-1
lines changed

android-pdf-viewer/src/main/java/com/github/barteksc/pdfviewer/PDFView.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,12 @@ protected void onDraw(Canvas canvas) {
508508
// abstraction of the screen position when rendering the parts.
509509

510510
// Draws background
511-
canvas.drawColor(Color.WHITE);
511+
Drawable bg = getBackground();
512+
if (bg == null) {
513+
canvas.drawColor(Color.WHITE);
514+
} else {
515+
bg.draw(canvas);
516+
}
512517

513518
if (recycled) {
514519
return;

0 commit comments

Comments
 (0)