From 2fc9ee5c5100154e8837e3c7c0bf833169fd24a9 Mon Sep 17 00:00:00 2001 From: Sander van Grieken Date: Mon, 24 Apr 2023 11:27:36 +0200 Subject: [PATCH] p4a: fix for Qt5 accessibility bug see https://github.com/accumulator/python-for-android/commit/087fc3c583d46bfb2dec54878ddea508afb27de6 --- contrib/android/Dockerfile | 2 +- electrum/gui/qml/__init__.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/contrib/android/Dockerfile b/contrib/android/Dockerfile index a3d6040bd..35cd9ed90 100644 --- a/contrib/android/Dockerfile +++ b/contrib/android/Dockerfile @@ -180,7 +180,7 @@ RUN cd /opt \ && git remote add accumulator https://github.com/accumulator/python-for-android \ && git fetch --all \ # commit: from branch accumulator/electrum_20210421d (note: careful with force-pushing! see #8162) - && git checkout "8d73dc4f2b74b187c4f1ff59b55873ba1e357b05^{commit}" \ + && git checkout "087fc3c583d46bfb2dec54878ddea508afb27de6^{commit}" \ && python3 -m pip install --no-build-isolation --no-dependencies --user -e . # build env vars diff --git a/electrum/gui/qml/__init__.py b/electrum/gui/qml/__init__.py index f475a58d5..6a0a70037 100644 --- a/electrum/gui/qml/__init__.py +++ b/electrum/gui/qml/__init__.py @@ -65,6 +65,8 @@ class ElectrumGui(BaseElectrumGui, Logger): os.environ['QT_VIRTUALKEYBOARD_STYLE'] = 'Electrum' os.environ['QML2_IMPORT_PATH'] = 'electrum/gui/qml' + os.environ['QT_ANDROID_DISABLE_ACCESSIBILITY'] = '1' + # set default locale to en_GB. This is for l10n (e.g. number formatting, number input etc), # but not for i18n, which is handled by the Translator # this can be removed once the backend wallet is fully l10n aware