Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 09638bb7 authored by Jordan Jozwiak's avatar Jordan Jozwiak Committed by Denalex Orakwue
Browse files

DO NOT MERGE Add DISTANCE_DISPLAY_UNIT to google VHAL

Bug: 138816759
Test: aae app vhal apply google & dump properties
Change-Id: I6a4d571975d5fe7ba6419cd4c37b734f21162f41
(cherry picked from commit 2619443e)

Merged-In: I6a4d571975d5fe7ba6419cd4c37b734f21162f41
parent 82299438
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -545,6 +545,13 @@ const ConfigDeclaration kVehicleProperties[]{
                .areaConfigs = {VehicleAreaConfig{.areaId = (0)}}},
     .initialValue = {.int32Values = {(int)VehicleUnit::FAHRENHEIT}}},

    {.config = {.prop = toInt(VehicleProperty::DISTANCE_DISPLAY_UNITS),
                .access = VehiclePropertyAccess::READ_WRITE,
                .changeMode = VehiclePropertyChangeMode::ON_CHANGE,
                .configArray = {(int)VehicleUnit::KILOMETER, (int)VehicleUnit::MILE},
                .areaConfigs = {VehicleAreaConfig{.areaId = (0)}}},
     .initialValue = {.int32Values = {(int)VehicleUnit::MILE}}},

    {.config =
         {
             .prop = toInt(VehicleProperty::NIGHT_MODE),