From a666b8f5da13ee2fd6e61d3e0a3f97cf6cff15a7 Mon Sep 17 00:00:00 2001 From: Vadim Tryshev Date: Mon, 11 Oct 2021 22:10:19 +0000 Subject: [PATCH] Revert "More logging for drop bar not appearing for dragged widget" This reverts commit 876c15aa1fecd89d34300bb0ed54ee635f82c173. Reason for revert: After this CL, the flake disappeared. Revert to see if this was because of this CL. Bug: 195031154 Test: presubmit Change-Id: Ic3c54900927615338d9510ad179e87ee43133e4e --- src/com/android/launcher3/DropTargetBar.java | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/src/com/android/launcher3/DropTargetBar.java b/src/com/android/launcher3/DropTargetBar.java index 08cc7307e9..eb42a652f9 100644 --- a/src/com/android/launcher3/DropTargetBar.java +++ b/src/com/android/launcher3/DropTargetBar.java @@ -275,20 +275,8 @@ public class DropTargetBar extends FrameLayout @Override protected void onVisibilityChanged(@NonNull View changedView, int visibility) { super.onVisibilityChanged(changedView, visibility); - if (TestProtocol.sDebugTracing) { - if (visibility == VISIBLE) { - Log.d(TestProtocol.NO_DROP_TARGET, "9"); - } else { - Log.d(TestProtocol.NO_DROP_TARGET, "Hiding drop target", new Exception()); - } - } - } - - @Override - public void onVisibilityAggregated(boolean isVisible) { - super.onVisibilityAggregated(isVisible); - if (TestProtocol.sDebugTracing) { - Log.d(TestProtocol.NO_DROP_TARGET, "onVisibilityAggregated: " + isVisible); + if (TestProtocol.sDebugTracing && visibility == VISIBLE) { + Log.d(TestProtocol.NO_DROP_TARGET, "9"); } } }