Add temporary logging to try and debug: b/202414125
Bug: 202414125 Test: Local Change-Id: I1a0a65467a911eed48592542f4f21bb784286eb2
This commit is contained in:
parent
5b92dccc5e
commit
a5c1f31110
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue