MiuiCamera: Fix settings crash and HDR capture crash
- In miui and miuix AttributeResolver, ensure resolveColor, resolveDimension, and resolveDimensionPixelSize return safe defaults (0) instead of invoking Resources.getColor(-1) or Resources.getDimension(-1) when an attribute cannot be resolved on non-MIUI themes. - In VendorTagHelper, force getPreferredAction to 0xbabe (SWALLOW/WARN) to prevent unsupported camera HAL vendor tags from throwing unhandled VendorTagNotFoundException. - In HdrEvValue, add defensive bounds checking and try-catch handling to gracefully fall back to default EV brackets ([-6, 0, 6]) when parsing HAL vendor payload. - In MiCamera2ShotParallelBurst, guard prepareHdr to initialize default HDR exposure compensation frames when EV value parsing is null or empty. - In AndroidManifest.xml, change CameraPreferenceActivity screenOrientation from 'behind' to 'portrait'. Change-Id: Iee1ee728014f5bcbae99261e08c83a05f416bced
This commit is contained in:
2 files changed
+518
-2
No files matched your search
@@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:4b502f5aa6b08d8a73f25a5e8d7642e9bea42c03c6ff874c71151655a3ed72b8
|
||||
size 56932456
|
||||
oid sha256:f1c66c1e4f8f5db4493fbae6e9bb00f769345297eeb981358ff334b0abbffcdc
|
||||
size 56928360
|
||||
Reference in new issue
Block a user