VibratorService: Fix Typo in AIDL Perform Effect

Test: Trigger Haptics at Varying Intensity Settigns
Change-Id: Ia731c69025cf2092681ff7e250839148aabca9c6
Signed-off-by: Harpreet \"Eli\" Sangha <eliptus@google.com>
This commit is contained in:
Harpreet \"Eli\" Sangha
2019-12-05 14:03:12 +09:00
parent 1d379ac065
commit 3b07c28432

View File

@@ -338,7 +338,7 @@ static jlong vibratorPerformEffect(JNIEnv* env, jclass, jlong effect, jlong stre
if (auto hal = getHal<aidl::IVibrator>()) {
int32_t lengthMs;
sp<AidlVibratorCallback> effectCallback = new AidlVibratorCallback(env, vibration);
aidl::Effect effectType(static_cast<aidl::Effect>(strength));
aidl::Effect effectType(static_cast<aidl::Effect>(effect));
aidl::EffectStrength effectStrength(static_cast<aidl::EffectStrength>(strength));
auto status = hal->call(&aidl::IVibrator::perform, effectType, effectStrength, effectCallback, &lengthMs);