From 27143a5a66ab5514b0c6bb3fb13e9097d7d5f718 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 22 Apr 2026 13:49:04 +0000 Subject: [PATCH 1/2] Initial plan From 328b7aa646eb2707bd4afd352dba9765d7a95799 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 22 Apr 2026 13:51:39 +0000 Subject: [PATCH 2/2] Fix Android PdfView default background to transparent Agent-Logs-Url: https://github.com/TheEightBot/MauiNativePdfView/sessions/79d2da60-a88c-42cf-bb98-58d306d9edd2 Co-authored-by: michaelstonis <120685+michaelstonis@users.noreply.github.com> --- .../Platforms/Android/PdfViewAndroid.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/MauiNativePdfView/Platforms/Android/PdfViewAndroid.cs b/src/MauiNativePdfView/Platforms/Android/PdfViewAndroid.cs index 6531ba0..29a53d7 100644 --- a/src/MauiNativePdfView/Platforms/Android/PdfViewAndroid.cs +++ b/src/MauiNativePdfView/Platforms/Android/PdfViewAndroid.cs @@ -42,6 +42,7 @@ public class PdfViewAndroid : IPdfView, IDisposable public PdfViewAndroid(Context context) { _pdfView = new PDFView(context, null); + _pdfView.SetBackgroundColor(global::Android.Graphics.Color.Transparent); } /// @@ -226,15 +227,14 @@ public Color? BackgroundColor set { _backgroundColor = value; - if (value != null) - { - var androidColor = global::Android.Graphics.Color.Argb( + var androidColor = value != null + ? global::Android.Graphics.Color.Argb( (int)(value.Alpha * 255), (int)(value.Red * 255), (int)(value.Green * 255), - (int)(value.Blue * 255)); - _pdfView.SetBackgroundColor(androidColor); - } + (int)(value.Blue * 255)) + : global::Android.Graphics.Color.Transparent; + _pdfView.SetBackgroundColor(androidColor); } }