diff --git a/app/src/main/java/com/bartlomiejpluta/ttsserver/ui/main/MainActivity.kt b/app/src/main/java/com/bartlomiejpluta/ttsserver/ui/main/MainActivity.kt
index 5de6362..96e37b6 100644
--- a/app/src/main/java/com/bartlomiejpluta/ttsserver/ui/main/MainActivity.kt
+++ b/app/src/main/java/com/bartlomiejpluta/ttsserver/ui/main/MainActivity.kt
@@ -122,7 +122,12 @@ class MainActivity : DaggerAppCompatActivity() {
fun controlServer(view: View) {
serverControlButton.isEnabled = false
when (ForegroundService.state) {
- ServiceState.STOPPED -> actionOnService(ForegroundService.START)
+ ServiceState.STOPPED -> {
+ serverControlButton.setImageResource(R.drawable.ic_power_warmingup)
+ serverStatus.text = getString(R.string.main_activity_server_status_warming_up)
+ promptText.text = getString(R.string.main_activity_prompt_warming_up)
+ actionOnService(ForegroundService.START)
+ }
ServiceState.RUNNING -> actionOnService(ForegroundService.STOP)
}
}
diff --git a/app/src/main/res/drawable/ic_power_warmingup.xml b/app/src/main/res/drawable/ic_power_warmingup.xml
new file mode 100644
index 0000000..0fb9bd7
--- /dev/null
+++ b/app/src/main/res/drawable/ic_power_warmingup.xml
@@ -0,0 +1,5 @@
+
+
+
diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml
index 2146026..0a22236 100644
--- a/app/src/main/res/values/colors.xml
+++ b/app/src/main/res/values/colors.xml
@@ -4,6 +4,7 @@
#512DA8
#D1C4E9
#8BC34A
+ #FFEB3B
#212121
#757575
#FFFFFF
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 484b769..88794a3 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -5,8 +5,10 @@
Allows application to run HTTP server which provides a TTS services.
The server is down
+ The server is starting
The server is up: %1$s
Tap power on button to run the server
+ Please wait…
Tap power off button to stop the server
HTTP Server