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

Commit 3ec15b04 authored by Tracy Zhou's avatar Tracy Zhou
Browse files

Revert "Fix touch focus not updated correctly after launching overview with live tile."

This reverts commit 8899f3a3.

Reason for revert: Regression b/280167174, b/280240591

Change-Id: Id82ab1dafb8c939b0e073ad4978d2782e3d953d8
parent 8899f3a3
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -61,14 +61,6 @@ public class OverviewInputConsumer<S extends BaseState<S>, T extends StatefulAct

        mTarget = activity.getDragLayer();
        mTarget.getLocationOnScreen(mLocationOnScreen);

        // When Overview is launched via meta+tab or swipe up from an app,
        // the touch mode somehow is not changed to false by the Android framework.
        // The subsequent key events (e.g. DPAD_LEFT, DPAD_RIGHT) can only be dispatched to
        // focused views, while focus can only be requested in
        // {@link View#requestFocusNoSearch(int, Rect)} when touch mode is false. To note,
        // here we launch overview with live tile.
        mActivity.getRootView().getViewRootImpl().touchModeChanged(false);
    }

    @Override