From 241fba24d0d32de0550af62f601b6b6e36f89e2e Mon Sep 17 00:00:00 2001 From: Charlie Anderson Date: Tue, 23 Jul 2024 19:36:42 -0400 Subject: [PATCH] Handle when archiving icon flag is turned off by setting overlay back on Bug: 350758155 Test: locally Flag: com.android.launcher3.enable_new_archiving_icon Change-Id: Ied5c1a3c0674aa14556cbc225b157ad309b93db4 --- src/com/android/launcher3/LauncherAppState.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/com/android/launcher3/LauncherAppState.java b/src/com/android/launcher3/LauncherAppState.java index b41da0fca3..08ccfb2148 100644 --- a/src/com/android/launcher3/LauncherAppState.java +++ b/src/com/android/launcher3/LauncherAppState.java @@ -115,9 +115,7 @@ public class LauncherAppState implements SafeCloseable { if (BuildCompat.isAtLeastV() && Flags.enableSupportForArchiving()) { ArchiveCompatibilityParams params = new ArchiveCompatibilityParams(); params.setEnableUnarchivalConfirmation(false); - if (Flags.enableNewArchivingIcon()) { - params.setEnableIconOverlay(false); - } + params.setEnableIconOverlay(!Flags.enableNewArchivingIcon()); launcherApps.setArchiveCompatibility(params); }