Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ccb13fa1 authored by Miranda Kephart's avatar Miranda Kephart Committed by Automerger Merge Worker
Browse files

Merge "Correct method signature of screenshot keychord invocation" into...

Merge "Correct method signature of screenshot keychord invocation" into tm-qpr-dev am: b16641d1 am: 6deecf7a

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22075883



Change-Id: I5634ce6874dba3de6ad448beb4aba5c9d8a7fea4
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents bdd68aa5 6deecf7a
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -1537,7 +1537,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);
    }
    }