afreakyelf / Pdf-Viewer

A Lightweight PDF Viewer Android library which only occupies around 80kb while most of the Pdf viewer occupies up to 16MB space.
https://afreakyelf.github.io/Pdf-Viewer/
MIT License
783 stars 168 forks source link

[BUG] App Theme Overridden After Integrating Pdf-Viewer v2.1.1 #162

Open alihaider63 opened 1 week ago

alihaider63 commented 1 week ago

πŸ“ Describe the Bug

When integrating the Pdf-Viewer v2.1.1 library, the app's custom theme is overridden by the library, resulting in unintended changes to the appearance of the app.

πŸ“– Library Version

🚢 Steps to Reproduce

Please follow these steps to reproduce the issue:

  1. Initial Setup/Library Method Used: initWithFile method
  2. Actions Taken: Opened the app and observed the overall app theme.
  3. Unexpected Behavior: The app theme is unexpectedly altered (e.g., different color scheme, fonts, or styles).
  4. Relevant Code/Stack Trace: N/A

πŸ€” Expected Behavior

The app's custom theme should remain unchanged after integrating the Pdf-Viewer library. The library should only affect the PDF viewer component without altering global app styles.

πŸ–ΌοΈ Screenshots/Videos

N/A

πŸ“± Smartphone Info:

πŸ’» Code Snippets

N/A

πŸ“œ Log Output/Stack Trace

N/A

πŸ’¬ Additional Context

This issue occurs consistently upon integration of the library. Forcing the app's theme in AndroidManifest.xml does not prevent the library from overriding it.


github-actions[bot] commented 1 week ago

Thank you for creating your first issue. We appreciate your help in making this project better. We will look into it, and get back to you soon. Need help or want to discuss this issue? Join our Discord community here to ask questions and discuss this issue live!