]> git.ktnx.net Git - mobile-ledger.git/blobdiff - app/src/main/java/net/ktnx/mobileledger/ui/profiles/ProfileDetailFragment.java
remove obsolete comments
[mobile-ledger.git] / app / src / main / java / net / ktnx / mobileledger / ui / profiles / ProfileDetailFragment.java
index 67f28439553cf010d5e530f1d71dcd43ff52a24d..d7b740e7dfcef5b383fc423bea9deafa8f6b6c30 100644 (file)
@@ -94,9 +94,6 @@ public class ProfileDetailFragment extends Fragment {
         super.onCreate(savedInstanceState);
 
         if ((getArguments() != null) && getArguments().containsKey(ARG_ITEM_ID)) {
-            // Load the dummy content specified by the fragment
-            // arguments. In a real-world scenario, use a Loader
-            // to load content from a content provider.
             int index = getArguments().getInt(ARG_ITEM_ID, -1);
             if (index != -1) mProfile = Data.profiles.get(index);
 
@@ -160,6 +157,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) {