Skip to content

Instantly share code, notes, and snippets.

Avatar

Al Sutton alsutton

View GitHub Profile
@alsutton
alsutton / gist:e50979b42eba07efbf2af20e0b39e2a7
Created May 19, 2022 16:41
Alternative for the mega-switch statement
View gist:e50979b42eba07efbf2af20e0b39e2a7
project packages/services/Car/
diff --git a/car-lib/src/android/car/VehiclePropertyIds.java b/car-lib/src/android/car/VehiclePropertyIds.java
index 450732d56..6062512dc 100644
--- a/car-lib/src/android/car/VehiclePropertyIds.java
+++ b/car-lib/src/android/car/VehiclePropertyIds.java
@@ -20,6 +20,12 @@ import android.annotation.RequiresPermission;
import android.car.hardware.CarPropertyValue;
import android.car.hardware.property.VehicleElectronicTollCollectionCardStatus;
import android.car.hardware.property.VehicleElectronicTollCollectionCardType;