Merge "Correct method signature of screenshot keychord invocation" into tm-qpr-dev am: b16641d1f0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22075883 Change-Id: I65da98129aaea87c82872072539c609c634d6a2a Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -1516,7 +1516,9 @@ public class PhoneWindowManager implements WindowManagerPolicy {
|
|||||||
|
|
||||||
private void interceptScreenshotChord(int source, long pressDelay) {
|
private void interceptScreenshotChord(int source, long pressDelay) {
|
||||||
mHandler.removeMessages(MSG_SCREENSHOT_CHORD);
|
mHandler.removeMessages(MSG_SCREENSHOT_CHORD);
|
||||||
mHandler.sendMessageDelayed(mHandler.obtainMessage(MSG_SCREENSHOT_CHORD, source),
|
// arg2 is unused, but necessary to insure we call the correct method signature
|
||||||
|
// since the screenshot source is read from message.arg1
|
||||||
|
mHandler.sendMessageDelayed(mHandler.obtainMessage(MSG_SCREENSHOT_CHORD, source, 0),
|
||||||
pressDelay);
|
pressDelay);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user