jarvis-ai

This commit is contained in:
2026-03-13 15:48:54 +01:00
parent b820c9a7be
commit 2ea34ff41c
2 changed files with 2 additions and 2 deletions

View File

@@ -82,6 +82,7 @@ class MainActivity : AppCompatActivity(), TextToSpeech.OnInitListener {
spinnerVoices = findViewById(R.id.spinnerVoices) spinnerVoices = findViewById(R.id.spinnerVoices)
val btnConnect = findViewById<Button>(R.id.btnConnect) val btnConnect = findViewById<Button>(R.id.btnConnect)
val btnSpeak = findViewById<Button>(R.id.btnSpeak) val btnSpeak = findViewById<Button>(R.id.btnSpeak)
val prefs = getSharedPreferences("JarvisPrefs", MODE_PRIVATE)
tts = TextToSpeech(this, this) tts = TextToSpeech(this, this)
val savedUrl = prefs.getString("server_url", "") val savedUrl = prefs.getString("server_url", "")
@@ -92,7 +93,6 @@ class MainActivity : AppCompatActivity(), TextToSpeech.OnInitListener {
connectToServer(savedUrl) connectToServer(savedUrl)
} }
val prefs = getSharedPreferences("JarvisPrefs", MODE_PRIVATE)
etUrl.setText(prefs.getString("server_url", "")) etUrl.setText(prefs.getString("server_url", ""))
btnConnect.setOnClickListener { btnConnect.setOnClickListener {

View File

@@ -23,5 +23,5 @@ dependencyResolutionManagement {
} }
} }
rootProject.name = "jarvis-stts" rootProject.name = "jarvis-ai"
include(":app") include(":app")