From c632e0f8df2a5e7409fbfa5e1e0cd8f1f4c7a4e0 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 Merged-In: Iab989ecf14ef379658130adbced241e084554e63 (cherry picked from commit bf8282269863a102cbaf71b7a43bd1075242384d) --- 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 ffeeb806ba54f..8fd2f07f3f39d 100644 --- a/core/java/android/view/ViewConfiguration.java +++ b/core/java/android/view/ViewConfiguration.java @@ -99,7 +99,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 a1723c0716de0..78b763f944c4c 100644 --- a/core/res/res/values/config.xml +++ b/core/res/res/values/config.xml @@ -2256,7 +2256,7 @@ - 500 + 0