am 05d7619d: am 3179826b: Fix for 2201954: Disable haptic feedback for hard keys while keyguard is showing
Merge commit '05d7619df5bc255ef8288bb63989995f4a98b50b' into eclair-mr2-plus-aosp * commit '05d7619df5bc255ef8288bb63989995f4a98b50b': Fix for 2201954: Disable haptic feedback for hard keys while keyguard is showing
This commit is contained in:
@@ -2189,8 +2189,9 @@ public class PhoneWindowManager implements WindowManagerPolicy {
|
||||
}
|
||||
|
||||
public boolean performHapticFeedbackLw(WindowState win, int effectId, boolean always) {
|
||||
if (!always && Settings.System.getInt(mContext.getContentResolver(),
|
||||
Settings.System.HAPTIC_FEEDBACK_ENABLED, 0) == 0) {
|
||||
final boolean hapticsDisabled = Settings.System.getInt(mContext.getContentResolver(),
|
||||
Settings.System.HAPTIC_FEEDBACK_ENABLED, 0) == 0;
|
||||
if (!always && (hapticsDisabled || mKeyguardMediator.isShowing())) {
|
||||
return false;
|
||||
}
|
||||
switch (effectId) {
|
||||
|
||||
Reference in New Issue
Block a user