javacafe01 / PdfViewer

A simple Pdf document viewer 💼
MIT License
380 stars 66 forks source link

Problem with MIUI's night mode #150

Open ilPongolo opened 2 years ago

ilPongolo commented 2 years ago

Issue Summary

By activating the night mode in MIUI 12.5.4, the display of PDFs is compromised by black squares that compromise reading.

Steps to Reproduce the Problem

Simply by activating the night mode from the MIUI menu and opening a PDF in the app.

Specifications

acutbal commented 2 years ago

Hi!! I've exactly the same issue on my POCO F2 Pro.

Specifications: App Version: 3.7 Android Version: 11 MIUI Version: MIUI Global 12.5.4.0 Stable (V12.5.4.0.RJKEUXM)

Screenshot_2022-01-09-22-25-39-547_com gsnathan pdfviewer Screenshot_2022-01-09-22-25-49-053_com gsnathan pdfviewer Screenshot_2022-01-09-22-25-54-392_com gsnathan pdfviewer

0xb1ff commented 2 years ago

I think that this is rather a MIUI problem than the app's fault.

Apparently, MIUI tries to provide a dark mode even for apps that don't offer it. Sometimes, this feature conflicts with apps that do support a dark mode like this PDF viewer. You can disable the MIUI dark mode for single apps as described here: https://www.xiaomist.com/2021/10/disarmed-how-to-disable-dark-mode-in.html?m=1