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

Commit 44276445 authored by Linus Tufvesson's avatar Linus Tufvesson Committed by Android (Google) Code Review
Browse files

Merge changes from topic "activity-touch-opaque-on-v2"

* changes:
  ENABLE_TOUCH_OPAQUE_ACTIVITIES to default enabled
  Use own surface bounds as touchable region
parents 2d0e9dee c52feead
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -22,7 +22,6 @@ import static com.android.server.wm.WindowContainer.AnimationFlags.TRANSITION;

import android.app.compat.CompatChanges;
import android.compat.annotation.ChangeId;
import android.compat.annotation.Disabled;
import android.os.IBinder;
import android.os.InputConstants;
import android.os.Looper;
@@ -47,7 +46,6 @@ class ActivityRecordInputSink {
     * Feature flag for making Activities consume all touches within their task bounds.
     */
    @ChangeId
    @Disabled
    static final long ENABLE_TOUCH_OPAQUE_ACTIVITIES = 194480991L;

    private static final String TAG = "ActivityRecordInputSink";
@@ -116,8 +114,7 @@ class ActivityRecordInputSink {
    private InputWindowHandle createInputWindowHandle() {
        InputWindowHandle inputWindowHandle = new InputWindowHandle(null,
                mActivityRecord.getDisplayId());
        inputWindowHandle.replaceTouchableRegionWithCrop(
                mActivityRecord.getParentSurfaceControl());
        inputWindowHandle.replaceTouchableRegionWithCrop = true;
        inputWindowHandle.name = mName;
        inputWindowHandle.ownerUid = Process.myUid();
        inputWindowHandle.ownerPid = Process.myPid();