Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f0ee658a authored by Chris Ye's avatar Chris Ye Committed by Android (Google) Code Review
Browse files

Merge "Fixed input device vibrator manager with single vibrator in CombinedEffects." into sc-dev

parents 54c39c71 7d78fea1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1920,7 +1920,7 @@ static void nativeVibrateCombined(JNIEnv* env, jclass /* clazz */, jlong ptr, ji
        // VibrationEffect.validate guarantees duration > 0.
        std::chrono::milliseconds duration(patternMillis[i]);
        element.duration = std::min(duration, MAX_VIBRATE_PATTERN_DELAY_MILLIS);
        for (int32_t channel = 0; channel < CHANNEL_SIZE; channel++) {
        for (int32_t channel = 0; channel < amplSize; channel++) {
            element.addChannel(vibratorIdArray[channel],
                               static_cast<uint8_t>(amplitudesArray[channel][i]));
        }