diff options
| author | 2019-12-06 01:22:04 +0000 | |
|---|---|---|
| committer | 2019-12-06 01:22:04 +0000 | |
| commit | 1a0e1bae272f6e72593bb0965035ef617028fb52 (patch) | |
| tree | 896d7f9de7363451c2df8f790c42da89b9f37a65 | |
| parent | 392f3db6b0bbdd55269a6a8257b868d60a6c0339 (diff) | |
| parent | 3b07c2843222b99d49831e22d5487d44fc2556d2 (diff) | |
Merge "VibratorService: Fix Typo in AIDL Perform Effect"
| -rw-r--r-- | services/core/jni/com_android_server_VibratorService.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/core/jni/com_android_server_VibratorService.cpp b/services/core/jni/com_android_server_VibratorService.cpp index 612a1e7074f9..dcff5a11aca0 100644 --- a/services/core/jni/com_android_server_VibratorService.cpp +++ b/services/core/jni/com_android_server_VibratorService.cpp @@ -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); |