Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f0af7ea6 authored by Julia Tuttle's avatar Julia Tuttle
Browse files

Log touches to ActivatableNotificationViews

Bug: 330492016
Test: manual: `adb shell cmd statusbar echo -t systemui.shade.touch:v`, `adb logcat -s systemui.shade.touch`; touch some things in the shade
Flag: NA
Change-Id: I557a0073c5233ae5f542369f2935b5cef602ce98
parent f7578688
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -38,6 +38,7 @@ import com.android.internal.jank.InteractionJankMonitor.Configuration;
import com.android.settingslib.Utils;
import com.android.systemui.Gefingerpoken;
import com.android.systemui.res.R;
import com.android.systemui.shade.TouchLogger;
import com.android.systemui.statusbar.NotificationShelf;
import com.android.systemui.statusbar.notification.FakeShadowView;
import com.android.systemui.statusbar.notification.NotificationUtils;
@@ -745,6 +746,12 @@ public abstract class ActivatableNotificationView extends ExpandableOutlineView
        }
    }

    @Override
    public boolean dispatchTouchEvent(MotionEvent ev) {
        return TouchLogger.logDispatchTouch(
                getClass().getSimpleName(), ev, super.dispatchTouchEvent(ev));
    }

    /**
     * SourceType which should be reset when this View is detached
     * @param sourceType will be reset on View detached