Loading app/src/main/java/foundation/e/accountmanager/ui/setup/EeloAuthenticatorFragment.kt +12 −0 Original line number Diff line number Diff line Loading @@ -55,6 +55,18 @@ class EeloAuthenticatorFragment : Fragment() { v.root.urlpwd_other_account_title_panel.setOnClickListener() { expandCollapse() } v.root.urlpwd_user_name.setOnFocusChangeListener() { v, hasFocus -> if (!hasFocus ) { if (v.urlpwd_user_name.text.toString().contains("@")) { val dns = v.urlpwd_user_name.text.toString().substringAfter("@") val pre_custom_url = "https://" + dns view!!.urlpwd_server_uri.setText(pre_custom_url) } else { view!!.urlpwd_server_uri.setText("") } } } v.login.setOnClickListener { login() } // code below is to draw toggle button in its correct state and show or hide server url input field Loading Loading
app/src/main/java/foundation/e/accountmanager/ui/setup/EeloAuthenticatorFragment.kt +12 −0 Original line number Diff line number Diff line Loading @@ -55,6 +55,18 @@ class EeloAuthenticatorFragment : Fragment() { v.root.urlpwd_other_account_title_panel.setOnClickListener() { expandCollapse() } v.root.urlpwd_user_name.setOnFocusChangeListener() { v, hasFocus -> if (!hasFocus ) { if (v.urlpwd_user_name.text.toString().contains("@")) { val dns = v.urlpwd_user_name.text.toString().substringAfter("@") val pre_custom_url = "https://" + dns view!!.urlpwd_server_uri.setText(pre_custom_url) } else { view!!.urlpwd_server_uri.setText("") } } } v.login.setOnClickListener { login() } // code below is to draw toggle button in its correct state and show or hide server url input field Loading