From 0a6882394485e97d02d9bd8cc4021513582c52a1 Mon Sep 17 00:00:00 2001 From: LowSkillDeveloper Date: Wed, 31 Jan 2024 15:49:05 +0100 Subject: [PATCH] Display current api key --- .../com/example/Unofficial3WiFiLocator/StartActivity.kt | 6 ++++++ 1 file changed, 6 insertions(+) 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)