LeOSium_webview/mulch/patches/0001-Vanadium/0054-show-download-prompt-a...

28 lines
1.7 KiB
Diff
Raw Normal View History

2023-11-18 11:46:19 +01:00
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Daniel Micay <danielmicay@gmail.com>
Date: Fri, 28 Jun 2019 17:48:49 -0400
Subject: [PATCH] show download prompt again by default
---
.../download/dialogs/DownloadLocationDialogCoordinator.java | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/chrome/browser/download/android/java/src/org/chromium/chrome/browser/download/dialogs/DownloadLocationDialogCoordinator.java b/chrome/browser/download/android/java/src/org/chromium/chrome/browser/download/dialogs/DownloadLocationDialogCoordinator.java
index 32c96b9119073..9cb877cd18d92 100644
--- a/chrome/browser/download/android/java/src/org/chromium/chrome/browser/download/dialogs/DownloadLocationDialogCoordinator.java
+++ b/chrome/browser/download/android/java/src/org/chromium/chrome/browser/download/dialogs/DownloadLocationDialogCoordinator.java
@@ -162,12 +162,9 @@ public class DownloadLocationDialogCoordinator implements ModalDialogProperties.
}
private PropertyModel getLocationDialogModel() {
- boolean isInitial = DownloadDialogBridge.getPromptForDownloadAndroid()
- == DownloadPromptStatus.SHOW_INITIAL;
-
PropertyModel.Builder builder =
new PropertyModel.Builder(DownloadLocationDialogProperties.ALL_KEYS);
- builder.with(DownloadLocationDialogProperties.DONT_SHOW_AGAIN_CHECKBOX_CHECKED, isInitial);
+ builder.with(DownloadLocationDialogProperties.DONT_SHOW_AGAIN_CHECKBOX_CHECKED, false);
builder.with(
DownloadLocationDialogProperties.FILE_NAME, new File(mSuggestedPath).getName());
builder.with(DownloadLocationDialogProperties.SHOW_SUBTITLE, true);