Fix usage hint of ringtone vibration preview

Bug: 130332550
Test: Go to Settings > Accessibility > Vibration > Notification
vibration, set it to off. Go to Settings > Accessibility > Vibration >
Ring vibration, and switch it a couple times. The preview effect should
be played

Change-Id: Ida4f04bb92873120c0f958d298ec31c8fb5dab97
This commit is contained in:
Alexey Kuzmin
2019-05-15 14:56:16 +01:00
parent 2e26605065
commit 63e3779701

View File

@@ -51,7 +51,7 @@ public class RingVibrationPreferenceFragment extends VibrationPreferenceFragment
@Override @Override
protected int getPreviewVibrationAudioAttributesUsage() { protected int getPreviewVibrationAudioAttributesUsage() {
return AudioAttributes.USAGE_NOTIFICATION; return AudioAttributes.USAGE_NOTIFICATION_RINGTONE;
} }
@Override @Override