diff --git a/quickstep/src/com/android/quickstep/views/OverviewActionsView.java b/quickstep/src/com/android/quickstep/views/OverviewActionsView.java index 76d3591325..5a8cbc1556 100644 --- a/quickstep/src/com/android/quickstep/views/OverviewActionsView.java +++ b/quickstep/src/com/android/quickstep/views/OverviewActionsView.java @@ -20,6 +20,7 @@ import android.content.Context; import android.content.res.Configuration; import android.graphics.Rect; import android.util.AttributeSet; +import android.util.Log; import android.view.View; import android.view.View.OnClickListener; import android.widget.FrameLayout; @@ -30,6 +31,7 @@ import androidx.annotation.Nullable; import com.android.launcher3.DeviceProfile; import com.android.launcher3.Insettable; import com.android.launcher3.R; +import com.android.launcher3.testing.TestProtocol; import com.android.launcher3.util.MultiValueAlpha; import com.android.launcher3.util.MultiValueAlpha.AlphaProperty; import com.android.quickstep.SysUINavigationMode; @@ -110,6 +112,11 @@ public class OverviewActionsView extends FrameLayo protected void onFinishInflate() { super.onFinishInflate(); findViewById(R.id.action_screenshot).setOnClickListener(this); + if (TestProtocol.sDebugTracing) { + Log.d(TestProtocol.NO_SCREENSHOT, "Inflated OverviewActionsView and added screenshot" + + " listener."); + } + mSplitButton = findViewById(R.id.action_split); mSplitButton.setOnClickListener(this); } @@ -125,6 +132,11 @@ public class OverviewActionsView extends FrameLayo @Override public void onClick(View view) { + if (TestProtocol.sDebugTracing) { + Log.d(TestProtocol.NO_SCREENSHOT, "OverviewActionsView - onClick" + + " callbacks: " + mCallbacks + " view id: " + view.getId() + " " + + " is screenshot? " + (view.getId() == R.id.action_screenshot)); + } if (mCallbacks == null) { return; }