Commit 75a4a11a authored by Michael Thiessen's avatar Michael Thiessen Committed by Commit Bot

Re-enable adding shortcuts in touchless mode.

Fixes https://chromium-review.googlesource.com/c/chromium/src/+/1639639
disabling shortcuts.

Bug: 972130
Change-Id: I4947ba268586ee22832da795dea104be6a2f2b7b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1649404Reviewed-by: default avatarMatthew Jones <mdjones@chromium.org>
Reviewed-by: default avatarTheresa <twellington@chromium.org>
Commit-Queue: Michael Thiessen <mthiesse@chromium.org>
Cr-Commit-Position: refs/heads/master@{#667270}
parent cd79e794
......@@ -702,13 +702,12 @@ public class ShortcutHelper {
}
private static boolean shouldShowToastWhenAddingShortcut() {
return !isRequestPinShortcutSupported();
return !isRequestPinShortcutSupported() || FeatureUtilities.isNoTouchModeEnabled();
}
private static boolean isRequestPinShortcutSupported() {
if (!sCheckedIfRequestPinShortcutSupported) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O
&& !FeatureUtilities.isNoTouchModeEnabled()) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
checkIfRequestPinShortcutSupported();
}
sCheckedIfRequestPinShortcutSupported = true;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment