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

Commit 10e71e01 authored by fisherson_lin's avatar fisherson_lin
Browse files

[Navigation bar] Allow "right to left" gesture to launch search panel

Symptom: "Bottom to up" gesture can launch search panel in portrait, but "right to left" gesture CANNOT in landscape.
Root Cause: Not handled.
Solution: Set swapXY to handle this in landscape case.

Change-Id: I1793280b3656af6912e6b4583b08e80a0a38e44a
parent 486544f7
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -521,6 +521,11 @@ public class NavigationBarView extends LinearLayout {
            Log.d(TAG, "reorient(): rot=" + mDisplay.getRotation());
        }

        // swap to x coordinate if orientation is not in vertical
        if (mDelegateHelper != null) {
            mDelegateHelper.setSwapXY(!mVertical);
        }

        setNavigationIconHints(mNavigationIconHints, true);
    }