From bf8282269863a102cbaf71b7a43bd1075242384d Mon Sep 17 00:00:00 2001 From: Miranda Kephart Date: Thu, 3 Sep 2020 15:51:31 -0400 Subject: [PATCH] Set the default screenshot delay to 0ms Bug: 165267251 Test: manual -- ensured that the time needed to hold is 0ms if the screenshot_keychord_delay debug value is not set, and that the delay can still be changed using adb shell device_config put systemui screenshot_keychord_delay Change-Id: Iab989ecf14ef379658130adbced241e084554e63 --- core/java/android/view/ViewConfiguration.java | 2 +- core/res/res/values/config.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/java/android/view/ViewConfiguration.java b/core/java/android/view/ViewConfiguration.java index ccf1fb07d0bb2..abf76ece1f3db 100644 --- a/core/java/android/view/ViewConfiguration.java +++ b/core/java/android/view/ViewConfiguration.java @@ -100,7 +100,7 @@ public class ViewConfiguration { * Defines the duration in milliseconds a user needs to hold down the * appropriate buttons (power + volume down) to trigger the screenshot chord. */ - private static final int SCREENSHOT_CHORD_KEY_TIMEOUT = 500; + private static final int SCREENSHOT_CHORD_KEY_TIMEOUT = 0; /** * Defines the duration in milliseconds a user needs to hold down the diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml index 5f2e4f905b1ce..ed99b41f68c87 100644 --- a/core/res/res/values/config.xml +++ b/core/res/res/values/config.xml @@ -2258,7 +2258,7 @@ - 500 + 0