Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intercept TouchEvent since apps disable it #125

Open
wants to merge 2 commits into
base: celadon/p/mr0/master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
From 7fcccf8b2b8247b7e8fad1a225029bded9e483e7 Mon Sep 17 00:00:00 2001
From: yingzhex <[email protected]>
Date: Mon, 20 Jan 2020 10:29:19 +0800
Subject: [PATCH] [PATCH] Intercept TouchEvent since apps disable it

Change-Id: Ia4726304b929e1811c33ce5336eaa54f131e32d0
Tracked-On: OAM-89034
Signed-off-by: yingzhex <[email protected]>
---
.../android/systemui/statusbar/phone/NavigationBarView.java | 3 +++
1 file changed, 3 insertions(+)

diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarView.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarView.java
index a86b7356755..2640d62c952 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarView.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarView.java
@@ -329,6 +329,9 @@ public class NavigationBarView extends FrameLayout implements PluginListener<Nav

@Override
public boolean onInterceptTouchEvent(MotionEvent event) {
+ if(SystemProperties.getBoolean("sys.disable.nav.touch", false)) {
+ return true;
+ }
if (shouldDeadZoneConsumeTouchEvents(event)) {
return true;
}
--
2.17.1