Add logs to components in AllApps to verify click.
Adding logs for investigation to verify related bugs where work profile may seem inactive but is supposed to be active. This also helps verify if touch is being received. Bug: 383301695 Test: manually- screenshot in bug Flag: EXEMPT adding logs Change-Id: I9f42d7013c8a127767b5cbcfbe5c416cebb2adbd
This commit is contained in:
1 parent
a398bf4dc4
commit
573fe8c72b
4 files changed
+14
-3
No files matched your search
@@ -25,6 +25,7 @@ import android.content.Intent;
|
||||
import android.graphics.Rect;
|
||||
import android.text.TextUtils;
|
||||
import android.util.AttributeSet;
|
||||
import android.util.Log;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.view.WindowInsets;
|
||||
@@ -57,6 +58,7 @@ import java.util.ArrayList;
|
||||
public class WorkUtilityView extends LinearLayout implements Insettable,
|
||||
KeyboardInsetAnimationCallback.KeyboardInsetListener {
|
||||
|
||||
private static final String TAG = "WorkUtilityView";
|
||||
private static final int TEXT_EXPAND_OPACITY_DURATION = 300;
|
||||
private static final int TEXT_COLLAPSE_OPACITY_DURATION = 50;
|
||||
private static final int EXPAND_COLLAPSE_DURATION = 300;
|
||||
@@ -133,9 +135,11 @@ public class WorkUtilityView extends LinearLayout implements Insettable,
|
||||
mSchedulerButton.setOnClickListener(null);
|
||||
if (shouldUseScheduler()) {
|
||||
mSchedulerButton.setVisibility(VISIBLE);
|
||||
mSchedulerButton.setOnClickListener(view ->
|
||||
mActivityContext.startActivitySafely(view,
|
||||
new Intent(mWorkSchedulerIntentAction), null /* itemInfo */));
|
||||
mSchedulerButton.setOnClickListener(view -> {
|
||||
Log.d(TAG, "WorkScheduler button clicked.");
|
||||
mActivityContext.startActivitySafely(view,
|
||||
new Intent(mWorkSchedulerIntentAction), null /* itemInfo */);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user