From 8629be753f1457d9fa1b365eec83ff48fd87c7c8 Mon Sep 17 00:00:00 2001 From: Vadim Tryshev Date: Tue, 26 Oct 2021 19:57:49 +0000 Subject: [PATCH] Partially restoring reverted logging ag/15858126 slowed down everything so that the flake stopped to repro. Attempting to reintroduce a more lightweight logging hoping that the flake will keep reproing. Test: presubmit Bug: 195031154 Change-Id: Ib533c22253e367cced1680a6f4d6736087f0837a --- src/com/android/launcher3/DropTargetBar.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/com/android/launcher3/DropTargetBar.java b/src/com/android/launcher3/DropTargetBar.java index eb42a652f9..9fb14f68cb 100644 --- a/src/com/android/launcher3/DropTargetBar.java +++ b/src/com/android/launcher3/DropTargetBar.java @@ -275,8 +275,12 @@ public class DropTargetBar extends FrameLayout @Override protected void onVisibilityChanged(@NonNull View changedView, int visibility) { super.onVisibilityChanged(changedView, visibility); - if (TestProtocol.sDebugTracing && visibility == VISIBLE) { - Log.d(TestProtocol.NO_DROP_TARGET, "9"); + 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()); + } } } }