diff --git a/app/src/main/java/com/example/Unofficial3WiFiLocator/StartActivity.kt b/app/src/main/java/com/example/Unofficial3WiFiLocator/StartActivity.kt index 56f319e..c542cd9 100644 --- a/app/src/main/java/com/example/Unofficial3WiFiLocator/StartActivity.kt +++ b/app/src/main/java/com/example/Unofficial3WiFiLocator/StartActivity.kt @@ -245,6 +245,12 @@ class StartActivity : Activity() { } binding.edtLogin.setText(savedLogin) binding.edtPassword.setText(savedPassword) + val savedApiKey = mSettings.AppSettings!!.getString(Settings.API_READ_KEY, "") + if (savedApiKey != "offline") { + binding.edtApiKey.setText(savedApiKey) + } else { + binding.edtApiKey.setText("") + } binding.btnGetApiKeys.setOnClickListener { val dProcess = ProgressDialog(this@StartActivity) dProcess.setProgressStyle(ProgressDialog.STYLE_SPINNER)