]> git.ktnx.net Git - mobile-ledger.git/commitdiff
profile details: focus user name when authentication is enabled
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Sun, 20 Jan 2019 14:34:20 +0000 (14:34 +0000)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Sun, 20 Jan 2019 14:34:20 +0000 (14:34 +0000)
app/src/main/java/net/ktnx/mobileledger/ui/profiles/ProfileDetailFragment.java

index 67f28439553cf010d5e530f1d71dcd43ff52a24d..bd93392140289d3b3dbbf555e468b39f607e32f2 100644 (file)
@@ -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) {