Loading policy/src/com/android/internal/policy/impl/PhoneWindowManager.java +8 −3 Original line number Diff line number Diff line Loading @@ -684,7 +684,7 @@ public class PhoneWindowManager implements WindowManagerPolicy { mVolumeDownKeyConsumedByScreenshotChord = true; cancelPendingPowerKeyAction(); mHandler.postDelayed(mScreenshotChordLongPress, getScreenshotChordLongPressDelay()); mHandler.postDelayed(mScreenshotRunnable, getScreenshotChordLongPressDelay()); } } } Loading @@ -700,7 +700,7 @@ public class PhoneWindowManager implements WindowManagerPolicy { } private void cancelPendingScreenshotChordAction() { mHandler.removeCallbacks(mScreenshotChordLongPress); mHandler.removeCallbacks(mScreenshotRunnable); } private final Runnable mPowerLongPress = new Runnable() { Loading Loading @@ -738,7 +738,7 @@ public class PhoneWindowManager implements WindowManagerPolicy { } }; private final Runnable mScreenshotChordLongPress = new Runnable() { private final Runnable mScreenshotRunnable = new Runnable() { public void run() { takeScreenshot(); } Loading Loading @@ -1975,6 +1975,11 @@ public class PhoneWindowManager implements WindowManagerPolicy { } } return -1; } else if (keyCode == KeyEvent.KEYCODE_SYSRQ) { if (down && repeatCount == 0) { mHandler.post(mScreenshotRunnable); } return -1; } // Shortcuts are invoked through Search+key, so intercept those here Loading Loading
policy/src/com/android/internal/policy/impl/PhoneWindowManager.java +8 −3 Original line number Diff line number Diff line Loading @@ -684,7 +684,7 @@ public class PhoneWindowManager implements WindowManagerPolicy { mVolumeDownKeyConsumedByScreenshotChord = true; cancelPendingPowerKeyAction(); mHandler.postDelayed(mScreenshotChordLongPress, getScreenshotChordLongPressDelay()); mHandler.postDelayed(mScreenshotRunnable, getScreenshotChordLongPressDelay()); } } } Loading @@ -700,7 +700,7 @@ public class PhoneWindowManager implements WindowManagerPolicy { } private void cancelPendingScreenshotChordAction() { mHandler.removeCallbacks(mScreenshotChordLongPress); mHandler.removeCallbacks(mScreenshotRunnable); } private final Runnable mPowerLongPress = new Runnable() { Loading Loading @@ -738,7 +738,7 @@ public class PhoneWindowManager implements WindowManagerPolicy { } }; private final Runnable mScreenshotChordLongPress = new Runnable() { private final Runnable mScreenshotRunnable = new Runnable() { public void run() { takeScreenshot(); } Loading Loading @@ -1975,6 +1975,11 @@ public class PhoneWindowManager implements WindowManagerPolicy { } } return -1; } else if (keyCode == KeyEvent.KEYCODE_SYSRQ) { if (down && repeatCount == 0) { mHandler.post(mScreenshotRunnable); } return -1; } // Shortcuts are invoked through Search+key, so intercept those here Loading