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 67f2843..bd93392 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) {