Add temporary logging to try and debug: b/202414125

Bug: 202414125
Test: Local
Change-Id: I1a0a65467a911eed48592542f4f21bb784286eb2
This commit is contained in:
Zak Cohen 2021-11-03 15:17:21 -07:00
parent 5b92dccc5e
commit a5c1f31110
1 changed files with 12 additions and 0 deletions

View File

@ -20,6 +20,7 @@ import android.content.Context;
import android.content.res.Configuration; import android.content.res.Configuration;
import android.graphics.Rect; import android.graphics.Rect;
import android.util.AttributeSet; import android.util.AttributeSet;
import android.util.Log;
import android.view.View; import android.view.View;
import android.view.View.OnClickListener; import android.view.View.OnClickListener;
import android.widget.FrameLayout; import android.widget.FrameLayout;
@ -30,6 +31,7 @@ import androidx.annotation.Nullable;
import com.android.launcher3.DeviceProfile; import com.android.launcher3.DeviceProfile;
import com.android.launcher3.Insettable; import com.android.launcher3.Insettable;
import com.android.launcher3.R; import com.android.launcher3.R;
import com.android.launcher3.testing.TestProtocol;
import com.android.launcher3.util.MultiValueAlpha; import com.android.launcher3.util.MultiValueAlpha;
import com.android.launcher3.util.MultiValueAlpha.AlphaProperty; import com.android.launcher3.util.MultiValueAlpha.AlphaProperty;
import com.android.quickstep.SysUINavigationMode; import com.android.quickstep.SysUINavigationMode;
@ -110,6 +112,11 @@ public class OverviewActionsView<T extends OverlayUICallbacks> extends FrameLayo
protected void onFinishInflate() { protected void onFinishInflate() {
super.onFinishInflate(); super.onFinishInflate();
findViewById(R.id.action_screenshot).setOnClickListener(this); 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 = findViewById(R.id.action_split);
mSplitButton.setOnClickListener(this); mSplitButton.setOnClickListener(this);
} }
@ -125,6 +132,11 @@ public class OverviewActionsView<T extends OverlayUICallbacks> extends FrameLayo
@Override @Override
public void onClick(View view) { 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) { if (mCallbacks == null) {
return; return;
} }