From 41c0191937e229903665552cb1a48c22695d306c Mon Sep 17 00:00:00 2001 From: Michael Huebler Date: Mon, 31 Jan 2022 12:31:23 +0100 Subject: [PATCH] Keep screen on during matching, to avoid interruption and re-start of a long matching process. --- build.gradle | 2 +- corona-warn-companion/src/main/res/layout/activity_main.xml | 3 ++- gradle/wrapper/gradle-wrapper.properties | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index 1071e1e..44acb21 100644 --- a/build.gradle +++ b/build.gradle @@ -23,7 +23,7 @@ buildscript { jcenter() } dependencies { - classpath 'com.android.tools.build:gradle:7.0.4' + classpath 'com.android.tools.build:gradle:7.1.0' classpath 'com.google.android.gms:oss-licenses-plugin:0.10.4' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files diff --git a/corona-warn-companion/src/main/res/layout/activity_main.xml b/corona-warn-companion/src/main/res/layout/activity_main.xml index d82978d..99f8a2d 100644 --- a/corona-warn-companion/src/main/res/layout/activity_main.xml +++ b/corona-warn-companion/src/main/res/layout/activity_main.xml @@ -4,7 +4,8 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" - tools:context=".MainActivity"> + tools:context=".MainActivity" + android:keepScreenOn="true">