diff --git a/apps/OboeTester/app/src/main/java/com/mobileer/oboetester/TestDataPathsActivity.java b/apps/OboeTester/app/src/main/java/com/mobileer/oboetester/TestDataPathsActivity.java index 53b0337ca..4d9e75d2a 100644 --- a/apps/OboeTester/app/src/main/java/com/mobileer/oboetester/TestDataPathsActivity.java +++ b/apps/OboeTester/app/src/main/java/com/mobileer/oboetester/TestDataPathsActivity.java @@ -691,6 +691,8 @@ public void runTest() { mTestResults.clear(); mDurationSeconds = DURATION_SECONDS; + runOnUiThread(() -> keepScreenOn(true)); + if (mCheckBoxInputPresets.isChecked()) { runOnUiThread(() -> mCheckBoxInputPresets.setEnabled(false)); testInputPresets(); @@ -706,6 +708,8 @@ public void runTest() { analyzeTestResults(); + runOnUiThread(() -> keepScreenOn(false)); + } catch (InterruptedException e) { analyzeTestResults(); } catch (Exception e) {