Skip to content
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

Volume unit behavior as units of length #21459

Merged
merged 3 commits into from
Dec 20, 2024
Merged

Conversation

0xRe1nk0
Copy link
Contributor

No description provided.

@@ -1047,6 +1047,7 @@ public boolean setValue(Object prefs, DrivingRegion val) {
boolean overrideMetricSystem = !DRIVING_REGION_AUTOMATIC.getValue(prefs, DRIVING_REGION_AUTOMATIC.getDefaultValue());
if (overrideMetricSystem && val != null) {
METRIC_SYSTEM.setValue(prefs, val.defMetrics);
UNIT_OF_VOLUME.set(val.volumeUnit);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Incorrect, driving region should override only default value. If the value is set by user it should never be overridden

Copy link
Member

@Chumva Chumva Dec 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vshcherb Do we still need to change the preference for METRIC_SYSTEM here, or is it fine to remove it?

@Chumva Chumva requested review from vshcherb and alex-osm December 19, 2024 22:43
@alex-osm alex-osm merged commit a405491 into master Dec 20, 2024
3 checks passed
@Chumva Chumva deleted the volume_units_behavior branch December 20, 2024 11:59
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

Successfully merging this pull request may close these issues.

4 participants