Merge "Fixes a system crash in VibratorService on x86 hosts"

This commit is contained in:
Christian Wailes
2019-10-29 22:13:06 +00:00
committed by Gerrit Code Review

View File

@@ -151,7 +151,7 @@ static void vibratorSetExternalControl(JNIEnv*, jobject, jboolean enabled) {
} }
} }
static jlong vibratorPerformEffect(JNIEnv*, jobject, jlong effect, jint strength) { static jlong vibratorPerformEffect(JNIEnv*, jobject, jlong effect, jlong strength) {
Status status; Status status;
uint32_t lengthMs; uint32_t lengthMs;
auto callback = [&status, &lengthMs](Status retStatus, uint32_t retLengthMs) { auto callback = [&status, &lengthMs](Status retStatus, uint32_t retLengthMs) {