Merge "More logging for drop bar not appearing for dragged widget" into sc-v2-dev am: d2f5a91936

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15858126

Change-Id: I69e376a7e2a312c96499fb829ba753bc401f5529
This commit is contained in:
Alex Chau
2021-09-20 12:02:33 +00:00
committed by Automerger Merge Worker
+14 -2
View File
@@ -275,8 +275,20 @@ 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());
}
}
}
@Override
public void onVisibilityAggregated(boolean isVisible) {
super.onVisibilityAggregated(isVisible);
if (TestProtocol.sDebugTracing) {
Log.d(TestProtocol.NO_DROP_TARGET, "onVisibilityAggregated: " + isVisible);
}
}
}