From 4dd29070223a413eb4352bc994a2ad2940b8b27c Mon Sep 17 00:00:00 2001 From: Brandon Dayauon Date: Mon, 8 Jul 2024 12:28:11 -0700 Subject: [PATCH] Adding logs to baseAllAppsAdapter to investigate private space icon alpha issue. bug: 349766550 Test: N/A Flag: com.android.launcher3.enable_private_space Change-Id: I7ac8b538adc6cf8ad8ca801b703fd88d6287f18f --- src/com/android/launcher3/allapps/BaseAllAppsAdapter.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/com/android/launcher3/allapps/BaseAllAppsAdapter.java b/src/com/android/launcher3/allapps/BaseAllAppsAdapter.java index 98ca420eb9..4b38df8e28 100644 --- a/src/com/android/launcher3/allapps/BaseAllAppsAdapter.java +++ b/src/com/android/launcher3/allapps/BaseAllAppsAdapter.java @@ -26,6 +26,7 @@ import static com.android.launcher3.allapps.UserProfileManager.STATE_DISABLED; import static com.android.launcher3.allapps.UserProfileManager.STATE_ENABLED; import android.content.Context; +import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.View.OnClickListener; @@ -278,6 +279,13 @@ public abstract class BaseAllAppsAdapter ex privateProfileManager.getReadyToAnimate()) && privateProfileManager.getCurrentState() == STATE_ENABLED ? 0 : 1); + Log.d(TAG, "onBindViewHolder: " + + "isPrivateSpaceItem: " + isPrivateSpaceItem + + " isStateTransitioning: " + privateProfileManager.isStateTransitioning() + + " isScrolling: " + privateProfileManager.isScrolling() + + " readyToAnimate: " + privateProfileManager.getReadyToAnimate() + + " currentState: " + privateProfileManager.getCurrentState() + + " currentAlpha: " + icon.getAlpha()); } // Views can still be bounded before the app list is updated hence showing icons // after collapsing.