From f2e834b976d781e4c30d6aa6ac316098e2ee2f58 Mon Sep 17 00:00:00 2001 From: Fernando Governatore Date: Tue, 23 Jun 2020 12:53:46 -0300 Subject: [PATCH] Workaround for #1076 and #1157 - IllegalStateException in autofill activity It seems that in Android 8.0.0 (API 26) there is a bug where setting the auto fill activity window to translucent causes an exception to be thrown. Per #1076 it doesn't happen on Android 8.1. This patch works around the problem by not setting the window to be translucent on API 26 only. The window is (obviously) not translucent, but the App doesn't crash and is otherwise usable. --- app/src/main/res/values-v26/styles.xml | 19 +++++++++++++++++++ app/src/main/res/values-v27/styles.xml | 19 +++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 app/src/main/res/values-v26/styles.xml create mode 100644 app/src/main/res/values-v27/styles.xml diff --git a/app/src/main/res/values-v26/styles.xml b/app/src/main/res/values-v26/styles.xml new file mode 100644 index 000000000..b4e95f753 --- /dev/null +++ b/app/src/main/res/values-v26/styles.xml @@ -0,0 +1,19 @@ + + + + + + diff --git a/app/src/main/res/values-v27/styles.xml b/app/src/main/res/values-v27/styles.xml new file mode 100644 index 000000000..dd7d759b8 --- /dev/null +++ b/app/src/main/res/values-v27/styles.xml @@ -0,0 +1,19 @@ + + + + + +