From 328515ed1905556e2d7987c4bee9c3f54e77e136 Mon Sep 17 00:00:00 2001 From: Norbel AMBANUMBEN Date: Wed, 20 Mar 2024 17:38:19 +0100 Subject: [PATCH] chore (OONI Run V2): Add missing error message when no tests are selected --- .../ooniprobe/activity/runtests/RunTestsActivity.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/org/openobservatory/ooniprobe/activity/runtests/RunTestsActivity.kt b/app/src/main/java/org/openobservatory/ooniprobe/activity/runtests/RunTestsActivity.kt index a3d459e7b..adf66a69e 100644 --- a/app/src/main/java/org/openobservatory/ooniprobe/activity/runtests/RunTestsActivity.kt +++ b/app/src/main/java/org/openobservatory/ooniprobe/activity/runtests/RunTestsActivity.kt @@ -4,6 +4,7 @@ import android.content.Context import android.content.Intent import android.os.Bundle import android.text.TextUtils +import android.widget.Toast import androidx.core.content.ContextCompat import androidx.core.graphics.drawable.DrawableCompat import org.openobservatory.engine.BaseNettest @@ -103,6 +104,8 @@ class RunTestsActivity : AbstractActivity() { { finish() }, preferenceManager ) + } else { + Toast.makeText(this@RunTestsActivity, "Please select test to run", Toast.LENGTH_LONG).show() } }