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

Commit b1e40725 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add a clarifying comment" into qt-dev

parents ef0f8a4d 14d84124
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -129,6 +129,13 @@ public abstract class VibrationPreferenceFragment extends RadioButtonPickerFragm
            Settings.System.putInt(getContext().getContentResolver(),
                    getVibrationIntensitySetting(), candidate.getIntensity());
        } else {
            // We can't play preview effect here for all cases because that causes a data race
            // (VibratorService may access intensity settings before these settings are updated).
            // But we can't just play it in intensity settings update observer, because the
            // intensity settings are not changed if we turn the vibration off, then on.
            //
            // In this case we sould play the preview here.
            // To be refactored in b/132952771
            playVibrationPreview();
        }
    }