From 33f37128e4f8fbe500fc73457f686883e39d6877 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Sun, 14 Jan 2024 20:58:25 +0800 Subject: [PATCH] Fix import profile --- app/src/main/java/io/nekohasekai/sfa/ui/MainActivity.kt | 2 ++ .../java/io/nekohasekai/sfa/ui/profile/NewProfileActivity.kt | 3 +++ 2 files changed, 5 insertions(+) diff --git a/app/src/main/java/io/nekohasekai/sfa/ui/MainActivity.kt b/app/src/main/java/io/nekohasekai/sfa/ui/MainActivity.kt index 529ad23..a8d2073 100644 --- a/app/src/main/java/io/nekohasekai/sfa/ui/MainActivity.kt +++ b/app/src/main/java/io/nekohasekai/sfa/ui/MainActivity.kt @@ -78,6 +78,8 @@ class MainActivity : AbstractActivity(), ServiceConnection.Callback { reconnect() startIntegration() + + onNewIntent(intent) } override fun onNewIntent(intent: Intent) { diff --git a/app/src/main/java/io/nekohasekai/sfa/ui/profile/NewProfileActivity.kt b/app/src/main/java/io/nekohasekai/sfa/ui/profile/NewProfileActivity.kt index 5c3272e..6f2ab38 100644 --- a/app/src/main/java/io/nekohasekai/sfa/ui/profile/NewProfileActivity.kt +++ b/app/src/main/java/io/nekohasekai/sfa/ui/profile/NewProfileActivity.kt @@ -57,6 +57,9 @@ class NewProfileActivity : AbstractActivity() { binding.name.editText?.setText(importName) binding.type.text = TypedProfile.Type.Remote.name binding.remoteURL.editText?.setText(importURL) + binding.localFields.isVisible = false + binding.remoteFields.isVisible = true + binding.autoUpdateInterval.text = "60" } }