From: Damyan Ivanov Date: Sun, 20 Jan 2019 14:34:20 +0000 (+0000) Subject: profile details: focus user name when authentication is enabled X-Git-Tag: v0.3~17 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=3037daca9c298bb6387116f2f4cc7537f41596c5;p=mobile-ledger.git profile details: focus user name when authentication is enabled --- 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) {