Merge "Add temporary logging to try and debug: b/202414125" into sc-v2-dev

This commit is contained in:
Zak Cohen 2021-11-04 18:06:25 +00:00 committed by Android (Google) Code Review
commit 75cc3a2f86
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.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<T extends OverlayUICallbacks> 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<T extends OverlayUICallbacks> 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;
}