From 8a4cd170959c7e765cd4131c765a6c9dc1b33a5d Mon Sep 17 00:00:00 2001 From: VitorVieiraZ Date: Thu, 16 May 2024 13:13:16 -0300 Subject: [PATCH 1/3] set android new env variable --- app/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/main.cpp b/app/main.cpp index 877a653b6..0ee08615c 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -458,6 +458,8 @@ int main( int argc, char *argv[] ) #ifdef ANDROID // See https://bugreports.qt.io/browse/QTBUG-86982 -> fix to make the predictive text disabled on Android qputenv( "QT_ANDROID_ENABLE_WORKAROUND_TO_DISABLE_PREDICTIVE_TEXT", "1" ); + // See issue #3431 -> disable Android accessibility features for the application + qputenv("QT_ANDROID_DISABLE_ACCESSIBILITY", "1"); #endif // AppSettings has to be initialized after QGIS app init (because of correct reading/writing QSettings). From 80a43ba334eccc04dfb855463533e35db495347c Mon Sep 17 00:00:00 2001 From: VitorVieiraZ Date: Thu, 16 May 2024 13:16:46 -0300 Subject: [PATCH 2/3] code layout fix --- app/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main.cpp b/app/main.cpp index 0ee08615c..a4f52b32a 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -459,7 +459,7 @@ int main( int argc, char *argv[] ) // See https://bugreports.qt.io/browse/QTBUG-86982 -> fix to make the predictive text disabled on Android qputenv( "QT_ANDROID_ENABLE_WORKAROUND_TO_DISABLE_PREDICTIVE_TEXT", "1" ); // See issue #3431 -> disable Android accessibility features for the application - qputenv("QT_ANDROID_DISABLE_ACCESSIBILITY", "1"); + qputenv( "QT_ANDROID_DISABLE_ACCESSIBILITY", "1" ); #endif // AppSettings has to be initialized after QGIS app init (because of correct reading/writing QSettings). From 770392dd0595b69f4831e4a9324585a35cf43e50 Mon Sep 17 00:00:00 2001 From: VitorVieiraZ Date: Thu, 16 May 2024 13:18:07 -0300 Subject: [PATCH 3/3] comment enhancement --- app/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main.cpp b/app/main.cpp index a4f52b32a..4462bc4b3 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -458,7 +458,7 @@ int main( int argc, char *argv[] ) #ifdef ANDROID // See https://bugreports.qt.io/browse/QTBUG-86982 -> fix to make the predictive text disabled on Android qputenv( "QT_ANDROID_ENABLE_WORKAROUND_TO_DISABLE_PREDICTIVE_TEXT", "1" ); - // See issue #3431 -> disable Android accessibility features for the application + // See issue #3431 -> disable Android accessibility features to prevent ANRs qputenv( "QT_ANDROID_DISABLE_ACCESSIBILITY", "1" ); #endif