From 2195639205f79d80b947a7cfd789d6fc2f4131d3 Mon Sep 17 00:00:00 2001 From: Zhengyu Peng Date: Tue, 15 Feb 2022 20:22:08 -0500 Subject: [PATCH] Update ControlActivity.kt --- .../src/main/java/com/rookiedev/hexapod/ControlActivity.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/software/android/app/src/main/java/com/rookiedev/hexapod/ControlActivity.kt b/software/android/app/src/main/java/com/rookiedev/hexapod/ControlActivity.kt index caf2d8b..2f7bb7a 100644 --- a/software/android/app/src/main/java/com/rookiedev/hexapod/ControlActivity.kt +++ b/software/android/app/src/main/java/com/rookiedev/hexapod/ControlActivity.kt @@ -423,9 +423,10 @@ class ControlActivity : AppCompatActivity() { val alert: AlertDialog = AlertDialog.Builder(this).create() when (type) { 0 -> { - alert.setTitle("Failed to connect") + alert.setTitle("Error") + alert.setIcon(R.drawable.ic_baseline_error_24) alert.setMessage( - "Failed to connect to the Hexapod" + "Unable to connect to the Hexapod." ) alert.setOnCancelListener(DialogInterface.OnCancelListener { finish() }) alert.setButton(AlertDialog.BUTTON_POSITIVE,