8000 Some configurations are missing · Issue #501 · rust-mobile/ndk · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Some configurations are missing #501

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
yyy33 opened this issue Apr 23, 2025 · 3 comments
Open

Some configurations are missing #501

yyy33 opened this issue Apr 23, 2025 · 3 comments

Comments

@yyy33
Copy link
yyy33 commented Apr 23, 2025

For the Configuration struct, the colorMode, fontScale,fontWeightAdjustment are missing.

@MarijnS95
Copy link
Member

Despite the colorMode field being available on the ResTable_config struct, and having an associated ACONFIGURATION_COLOR_MODE bitmask to communicate changes to this field as well as the ACONFIGURATION_HDR_* and ACONFIGURATION_WIDE_COLOR_GAMUT_* values mapped, there is no public getter available for the colorMode field.

I suggest reporting an issue upstream.

For the fontScale and fontWeightAdjustment fields in the Java Configuration struct, those don't even seem to be propagated to the native (NDK) AConfiguration struct: https://cs.android.com/android/platform/superproject/main/+/main:frameworks/base/core/jni/android_util_AssetManager.cpp;l=356-425;drc=9729118333e2caf254c83c34ae941f0a7328378f

If you need this kind of information, I'm working on new Android+Rust infrastructure that bundles Java interop to implement or provide missing APIs, while behaving NDK-like.

@MarijnS95
Copy link
Member

This would be the place to report these lacking fields/getters: https://issuetracker.google.com/issues?q=status:open%20componentid:192763

Let me know if you'd like me to report the missing colorMode getter instead.

@yyy33
Copy link
Author
yyy33 commented Apr 25, 2025

Let me know if you'd like me to report the missing colorMode getter instead.

Please help me to report this, I don't speak English very well and I'm not familiar with this Google page!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0