forked from bromite/bromite
-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#876 Disable Paint Preview by default
- Loading branch information
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
From: uazo <[email protected]> | ||
Date: Wed, 20 Mar 2024 16:26:23 +0000 | ||
Subject: Disable Paint Preview by default | ||
|
||
License: GPL-2.0-or-later - https://spdx.org/licenses/GPL-2.0-or-later.html | ||
--- | ||
.../chrome/browser/paint_preview/StartupPaintPreviewHelper.java | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/paint_preview/StartupPaintPreviewHelper.java b/chrome/android/java/src/org/chromium/chrome/browser/paint_preview/StartupPaintPreviewHelper.java | ||
--- a/chrome/android/java/src/org/chromium/chrome/browser/paint_preview/StartupPaintPreviewHelper.java | ||
+++ b/chrome/android/java/src/org/chromium/chrome/browser/paint_preview/StartupPaintPreviewHelper.java | ||
@@ -112,7 +112,7 @@ public class StartupPaintPreviewHelper { | ||
* feature is not enabled this is effectively a no-op. | ||
*/ | ||
public static void setShouldShowOnRestore(boolean shouldShowOnRestore) { | ||
- sShouldShowOnRestore = shouldShowOnRestore; | ||
+ sShouldShowOnRestore = false; | ||
} | ||
|
||
/** Attempts to display the Paint Preview representation for the given Tab. */ | ||
-- |