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

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

Merge "Remove splash screen special case"

parents 2a224354 1eac60ae
Loading
Loading
Loading
Loading
+4 −7
Original line number Diff line number Diff line
@@ -55,12 +55,12 @@ class ActivityRecordInputSink {

    private final ActivityRecord mActivityRecord;
    private final boolean mIsCompatEnabled;
    private final String mName;

    // Hold on to InputEventReceiver to prevent it from getting GCd.
    private InputEventReceiver mInputEventReceiver;
    private InputWindowHandleWrapper mInputWindowHandleWrapper;
    private final String mName = Integer.toHexString(System.identityHashCode(this))
            + " ActivityRecordInputSink";

    private int mRapidTouchCount = 0;
    private IBinder mToken;
    private boolean mDisabled = false;
@@ -69,6 +69,8 @@ class ActivityRecordInputSink {
        mActivityRecord = activityRecord;
        mIsCompatEnabled = CompatChanges.isChangeEnabled(ENABLE_TOUCH_OPAQUE_ACTIVITIES,
                mActivityRecord.getUid());
        mName = Integer.toHexString(System.identityHashCode(this)) + " ActivityRecordInputSink "
                + mActivityRecord.mActivityComponent.getShortClassName();
    }

    public void applyChangesToSurfaceIfChanged(
@@ -91,11 +93,6 @@ class ActivityRecordInputSink {
                ANIMATION_TYPE_APP_TRANSITION)) {
            // TODO(b/208662670): Investigate if we can have feature active during animations.
            mInputWindowHandleWrapper.setToken(null);
        } else if (mActivityRecord.mStartingData != null) {
            // TODO(b/208659130): Remove this special case
            // Don't block touches during splash screen. This is done to not show toasts for
            // touches passing through splash screens. b/171772640
            mInputWindowHandleWrapper.setToken(null);
        } else {
            mInputWindowHandleWrapper.setToken(mToken);
        }