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

Commit 200c3864 authored by Hall Liu's avatar Hall Liu Committed by android-build-merger
Browse files

Merge "Fix race condition in Ringer"

am: 6f0d9949

Change-Id: Ifb3614303417951a5323c0bec66be6219a81f11c
parents efef1165 6f0d9949
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -374,12 +374,12 @@ public class Ringer {
                    && mSystemSettingsUtil.enableRampingRingerFromDeviceConfig()
                    && isRingerAudible) {
                Log.i(this, "start vibration for ramping ringer.");
                mVibrator.vibrate(effect, VIBRATION_ATTRIBUTES);
                mIsVibrating = true;
                mVibrator.vibrate(effect, VIBRATION_ATTRIBUTES);
            } else {
                Log.i(this, "start normal vibration.");
                mVibrator.vibrate(effect, VIBRATION_ATTRIBUTES);
                mIsVibrating = true;
                mVibrator.vibrate(effect, VIBRATION_ATTRIBUTES);
            }
        } else if (mIsVibrating) {
            Log.addEvent(foregroundCall, LogUtils.Events.SKIP_VIBRATION, "already vibrating");