Android: Add a way to disable accessibility via an environment var
Pick-to: 6.4 6.3 6.2 5.15 Task-number: QTBUG-102168 Change-Id: I38956c1798b8874b3c5bc5b19c8cb09380e76cc3 Reviewed-by: Rami Potinkara <rami.potinkara@qt.io> Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
This commit is contained in:
parent
df89c93d91
commit
e7553adf16
@ -21,6 +21,7 @@ import android.view.MotionEvent;
|
||||
import android.view.View.OnHoverListener;
|
||||
|
||||
import android.content.Context;
|
||||
import android.system.Os;
|
||||
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
@ -88,6 +89,8 @@ public class QtAccessibilityDelegate extends View.AccessibilityDelegate
|
||||
@Override
|
||||
public void onAccessibilityStateChanged(boolean enabled)
|
||||
{
|
||||
if (Os.getenv("QT_ANDROID_DISABLE_ACCESSIBILITY") != null)
|
||||
return;
|
||||
if (enabled) {
|
||||
try {
|
||||
View view = m_view;
|
||||
|
Loading…
Reference in New Issue
Block a user