Merge "Fix PIN lock pattern not respecting user settings" into tm-dev

This commit is contained in:
Lais Andrade
2022-03-23 18:36:58 +00:00
committed by Android (Google) Code Review
3 changed files with 3 additions and 7 deletions

View File

@@ -35,7 +35,6 @@ import android.graphics.RecordingCanvas;
import android.graphics.Rect; import android.graphics.Rect;
import android.graphics.Shader; import android.graphics.Shader;
import android.graphics.drawable.Drawable; import android.graphics.drawable.Drawable;
import android.media.AudioManager;
import android.os.Bundle; import android.os.Bundle;
import android.os.Debug; import android.os.Debug;
import android.os.Parcel; import android.os.Parcel;
@@ -769,8 +768,7 @@ public class LockPatternView extends View {
} }
addCellToPattern(cell); addCellToPattern(cell);
performHapticFeedback(HapticFeedbackConstants.VIRTUAL_KEY, performHapticFeedback(HapticFeedbackConstants.VIRTUAL_KEY,
HapticFeedbackConstants.FLAG_IGNORE_VIEW_SETTING HapticFeedbackConstants.FLAG_IGNORE_VIEW_SETTING);
| HapticFeedbackConstants.FLAG_IGNORE_GLOBAL_SETTING);
return cell; return cell;
} }
return null; return null;

View File

@@ -76,8 +76,7 @@ public abstract class KeyguardAbsKeyInputView extends KeyguardInputView {
// Cause a VIRTUAL_KEY vibration // Cause a VIRTUAL_KEY vibration
public void doHapticKeyClick() { public void doHapticKeyClick() {
performHapticFeedback(HapticFeedbackConstants.VIRTUAL_KEY, performHapticFeedback(HapticFeedbackConstants.VIRTUAL_KEY,
HapticFeedbackConstants.FLAG_IGNORE_VIEW_SETTING HapticFeedbackConstants.FLAG_IGNORE_VIEW_SETTING);
| HapticFeedbackConstants.FLAG_IGNORE_GLOBAL_SETTING);
} }
public void setKeyDownListener(KeyDownListener keyDownListener) { public void setKeyDownListener(KeyDownListener keyDownListener) {

View File

@@ -219,7 +219,6 @@ public class NumPadKey extends ViewGroup {
// Cause a VIRTUAL_KEY vibration // Cause a VIRTUAL_KEY vibration
public void doHapticKeyClick() { public void doHapticKeyClick() {
performHapticFeedback(HapticFeedbackConstants.VIRTUAL_KEY, performHapticFeedback(HapticFeedbackConstants.VIRTUAL_KEY,
HapticFeedbackConstants.FLAG_IGNORE_VIEW_SETTING HapticFeedbackConstants.FLAG_IGNORE_VIEW_SETTING);
| HapticFeedbackConstants.FLAG_IGNORE_GLOBAL_SETTING);
} }
} }