From d6f0e065aa37e393d1978e2b595ce424dac4b7fb Mon Sep 17 00:00:00 2001 From: Adam Brown Date: Fri, 28 Jan 2022 12:49:28 +0000 Subject: [PATCH] fixing missing when branches warning --- vector/src/androidTest/java/im/vector/app/EspressoExt.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vector/src/androidTest/java/im/vector/app/EspressoExt.kt b/vector/src/androidTest/java/im/vector/app/EspressoExt.kt index 59ad122f36..ef76a9d1f3 100644 --- a/vector/src/androidTest/java/im/vector/app/EspressoExt.kt +++ b/vector/src/androidTest/java/im/vector/app/EspressoExt.kt @@ -195,6 +195,9 @@ fun activityIdlingResource(activityClass: Class<*>): IdlingResource { println("*** [$name] onActivityLifecycleChanged callback: $callback") callback?.onTransitionToIdle() } + else -> { + // do nothing, we're blocking until the activity resumes + } } } }