Merge "Enable touch feedback settings when the phone is in silent mode" into tm-dev

This commit is contained in:
TreeHugger Robot
2022-02-28 22:46:22 +00:00
committed by Android (Google) Code Review
7 changed files with 110 additions and 29 deletions

View File

@@ -37,12 +37,6 @@ public class HapticFeedbackIntensityPreferenceController
VibrationAttributes.USAGE_TOUCH);
}
@Override
public boolean isRestrictedByRingerModeSilent() {
// Touch feedback is disabled when the phone is in silent mode.
return true;
}
@Override
public int readIntensity() {
final int hapticFeedbackEnabled = Settings.System.getInt(mContentResolver,