From 3037daca9c298bb6387116f2f4cc7537f41596c5 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Sun, 20 Jan 2019 14:34:20 +0000 Subject: [PATCH] profile details: focus user name when authentication is enabled --- .../net/ktnx/mobileledger/ui/profiles/ProfileDetailFragment.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/profiles/ProfileDetailFragment.java b/app/src/main/java/net/ktnx/mobileledger/ui/profiles/ProfileDetailFragment.java index 67f28439..bd933921 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/profiles/ProfileDetailFragment.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/profiles/ProfileDetailFragment.java @@ -160,6 +160,7 @@ public class ProfileDetailFragment extends Fragment { useAuthentication.setOnCheckedChangeListener((buttonView, isChecked) -> { Log.d("profiles", isChecked ? "auth enabled " : "auth disabled"); authParams.setVisibility(isChecked ? View.VISIBLE : View.GONE); + if (isChecked) userName.requestFocus(); }); if (mProfile != null) { -- 2.39.5