Skip to content

Commit

Permalink
chore (OONI Run V2): Add missing error message when no tests are sele…
Browse files Browse the repository at this point in the history
…cted (#700)

- Fixes  ooni/run#142

## Proposed Changes

  - Add `Toast` where no test is selected
 
|.|.|
|-|-|
|
![Screenshot_20240320_173337](https://github.com/ooni/probe-android/assets/17911892/ee2bb49d-7411-4807-91b0-1a2445aa5ba4)
|
![Screenshot_20240320_173411](https://github.com/ooni/probe-android/assets/17911892/b4c4986a-f608-483a-b8c4-4223e9892f4b)
|
  • Loading branch information
aanorbel authored Mar 21, 2024
1 parent f5ae9c0 commit 6798e74
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -103,6 +104,8 @@ class RunTestsActivity : AbstractActivity() {
{ finish() },
preferenceManager
)
} else {
Toast.makeText(this@RunTestsActivity, "Please select test to run", Toast.LENGTH_LONG).show()
}
}

Expand Down

0 comments on commit 6798e74

Please sign in to comment.