summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Treehugger Robot <treehugger-gerrit@google.com> 2019-12-06 01:22:04 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2019-12-06 01:22:04 +0000
commit1a0e1bae272f6e72593bb0965035ef617028fb52 (patch)
tree896d7f9de7363451c2df8f790c42da89b9f37a65
parent392f3db6b0bbdd55269a6a8257b868d60a6c0339 (diff)
parent3b07c2843222b99d49831e22d5487d44fc2556d2 (diff)
Merge "VibratorService: Fix Typo in AIDL Perform Effect"
-rw-r--r--services/core/jni/com_android_server_VibratorService.cpp2
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);