am 65fb72a4: am d6adf0ae: Disable key repeats when the screen is off.

Merge commit '65fb72a42ca01124beea8d4a4b9ee0326cfe5e1c' into eclair-mr2-plus-aosp

* commit '65fb72a42ca01124beea8d4a4b9ee0326cfe5e1c':
  Disable key repeats when the screen is off.
This commit is contained in:
Mike Lockwood
2009-10-22 10:58:52 -07:00
committed by Android Git Automerger

View File

@@ -2218,5 +2218,10 @@ public class PhoneWindowManager implements WindowManagerPolicy {
mPowerManager.userActivity(curTime, false, LocalPowerManager.OTHER_EVENT);
}
}
public boolean allowKeyRepeat() {
// disable key repeat when screen is off
return mScreenOn;
}
}