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

Commit 603b3298 authored by Matthew Ng's avatar Matthew Ng
Browse files

Avoids vibration over deadzone in navigationbar

Removed the deadzone as a view and converted to a class that is attached
to NavigationBarView to determine if the incoming touch events should be
consumed by the deadzone.

Change-Id: I5bf6a9e48ba9fa2305ec98acfc537d14cb8cf725
Fixes: 77235132
Test: tap just above the home button in portrait
parent 50228a64
Loading
Loading
Loading
Loading
+0 −12
Original line number Diff line number Diff line
@@ -41,16 +41,4 @@

    </FrameLayout>

    <com.android.systemui.statusbar.policy.DeadZone
        android:id="@+id/deadzone"
        android:layout_height="match_parent"
        android:layout_width="match_parent"
        android:layout_gravity="top"
        systemui:minSize="@dimen/navigation_bar_deadzone_size"
        systemui:maxSize="@dimen/navigation_bar_deadzone_size_max"
        systemui:holdTime="@integer/navigation_bar_deadzone_hold"
        systemui:decayTime="@integer/navigation_bar_deadzone_decay"
        systemui:orientation="horizontal"
        />

</FrameLayout>
+0 −12
Original line number Diff line number Diff line
@@ -46,16 +46,4 @@

    </com.android.systemui.statusbar.phone.NearestTouchFrame>

    <com.android.systemui.statusbar.policy.DeadZone
        android:id="@+id/deadzone"
        android:layout_height="match_parent"
        android:layout_width="match_parent"
        android:layout_gravity="top"
        systemui:minSize="@dimen/navigation_bar_deadzone_size"
        systemui:maxSize="@dimen/navigation_bar_deadzone_size_max"
        systemui:holdTime="@integer/navigation_bar_deadzone_hold"
        systemui:decayTime="@integer/navigation_bar_deadzone_decay"
        systemui:orientation="horizontal"
        />

</FrameLayout>
+0 −12
Original line number Diff line number Diff line
@@ -46,16 +46,4 @@

    </com.android.systemui.statusbar.phone.NearestTouchFrame>

    <com.android.systemui.statusbar.policy.DeadZone
        android:id="@+id/deadzone"
        android:layout_height="match_parent"
        android:layout_width="match_parent"
        android:layout_gravity="top"
        systemui:minSize="@dimen/navigation_bar_deadzone_size"
        systemui:maxSize="@dimen/navigation_bar_deadzone_size_max"
        systemui:holdTime="@integer/navigation_bar_deadzone_hold"
        systemui:decayTime="@integer/navigation_bar_deadzone_decay"
        systemui:orientation="vertical"
        />

</FrameLayout>
+3 −0
Original line number Diff line number Diff line
@@ -28,4 +28,7 @@

    <!-- We have only space for one notification on phone landscape layouts. -->
    <integer name="keyguard_max_notification_count">1</integer>

    <!-- orientation of the dead zone when touches have recently occurred elsewhere on screen -->
    <integer name="navigation_bar_deadzone_orientation">1</integer>
</resources>
+3 −0
Original line number Diff line number Diff line
@@ -35,4 +35,7 @@
    <!-- Animation duration when using long press on recents to dock -->
    <integer name="long_press_dock_anim_duration">290</integer>

    <!-- orientation of the dead zone when touches have recently occurred elsewhere on screen -->
    <integer name="navigation_bar_deadzone_orientation">0</integer>

</resources>
Loading