More logging for pause non-detection

Bug: 156044202
Change-Id: I0831735aa743360c16e1f940c30875f32432fec5
This commit is contained in:
Jon Miranda
2020-05-29 19:41:11 -07:00
parent c577bb8425
commit 77d8903f4a
3 changed files with 35 additions and 3 deletions

View File

@@ -59,6 +59,7 @@ import com.android.launcher3.icons.LauncherIcons;
import com.android.launcher3.model.data.ItemInfo;
import com.android.launcher3.popup.SystemShortcut;
import com.android.launcher3.shortcuts.DeepShortcutView;
import com.android.launcher3.testing.TestProtocol;
/**
* A view that is created to look like another view with the purpose of creating fluid animations.
@@ -560,6 +561,11 @@ public class FloatingIconView extends FrameLayout implements
view.setVisibility(INVISIBLE);
parent.addView(view);
dragLayer.addView(view.mListenerView);
if (TestProtocol.sDebugTracing) {
Log.d(TestProtocol.PAUSE_NOT_DETECTED, "getFloatingIconView. listenerView "
+ "added to dragLayer. listenerView=" + view.mListenerView + ", fiv=" + view,
new Exception());
}
view.mListenerView.setListener(view::fastFinish);
view.mEndRunnable = () -> {
@@ -639,6 +645,10 @@ public class FloatingIconView extends FrameLayout implements
private void finish(DragLayer dragLayer) {
((ViewGroup) dragLayer.getParent()).removeView(this);
dragLayer.removeView(mListenerView);
if (TestProtocol.sDebugTracing) {
Log.d(TestProtocol.PAUSE_NOT_DETECTED, "listenerView removed from dragLayer. "
+ "listenerView=" + mListenerView + ", fiv=" + this, new Exception());
}
recycle();
mLauncher.getViewCache().recycleView(R.layout.floating_icon_view, this);
}