mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-03 09:26:51 +00:00
More logging for pause non-detection
Bug: 156044202 Change-Id: I0831735aa743360c16e1f940c30875f32432fec5
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user