Igalia / wolvic

A fast and secure browser for standalone virtual-reality and augmented-reality headsets.
https://wolvic.org
Mozilla Public License 2.0
796 stars 100 forks source link

Fixes errors encountered in the NoAPI build variant #1295

Closed kavi-kumaran-13962 closed 6 months ago

kavi-kumaran-13962 commented 6 months ago

This pr fixes #1294.

Changes made :

  1. Added Context.RECEIVER_NOT_EXPORTED flag if Android version is 12 or above, In registerReceiver call in VRBrowserActivity and DownloadsManager.
  2. Added a line to set densityDpi, since an error was thrown. mDefaultMetrics.densityDpi = (int) metrics.getDensity() * 160 The line just makes a simple calculation of densityDpi from density.