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

Commit 1ed148d3 authored by Tony Huang's avatar Tony Huang
Browse files

Migrate OneHanded to WM shell (4/n)

Move OneHanded related codes, res and tests to WM shell.

Some tests add ignored currently due to permission issue.
Add another bug to trace it.

Also fix animation issue caused by wrong logic.

Bug: 161980408
Fix: 168074363
Test: manual check one handed function
Test: atest WMShellUnitTests
Test: atest SystemUITests
Test: make ArcSystemUI; make ArcSystemUITests
Test: make CarSystemUI; make CarSystemUITests
Change-Id: Ib25661d010278202ffe15fd9c4962e76e6698c21
parent 8be878f9
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -105,6 +105,7 @@ android_library {
    static_libs: [
        "protolog-lib",
        "WindowManager-Shell-proto",
        "androidx.appcompat_appcompat",
    ],
    manifest: "AndroidManifest.xml",
}
 No newline at end of file
+3 −0
Original line number Diff line number Diff line
@@ -29,4 +29,7 @@

    <!-- Animation duration when using long press on recents to dock -->
    <integer name="long_press_dock_anim_duration">250</integer>

    <!-- Allow one handed to enable round corner -->
    <bool name="config_one_handed_enable_round_corner">true</bool>
</resources>
+4 −0
Original line number Diff line number Diff line
@@ -62,4 +62,8 @@

    <dimen name="docked_divider_handle_width">16dp</dimen>
    <dimen name="docked_divider_handle_height">2dp</dimen>

    <!-- One-Handed Mode -->
    <!-- Threshold for dragging distance to enable one-handed mode -->
    <dimen name="gestures_onehanded_drag_threshold">20dp</dimen>
</resources>
Loading