]> git.ktnx.net Git - mobile-ledger.git/commitdiff
one more lambda
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Fri, 11 Jan 2019 19:30:10 +0000 (19:30 +0000)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Fri, 11 Jan 2019 19:30:10 +0000 (19:30 +0000)
app/src/main/java/net/ktnx/mobileledger/ui/activity/ProfileListActivity.java

index 85554bf58c40f98ee0f6e9b50f9802ca313a9cf2..5b43b8ed3ac2b65598cfbc93e252e1101bc70f94 100644 (file)
@@ -211,9 +211,7 @@ public class ProfileListActivity extends AppCompatActivity {
                 MobileLedgerProfile profile = (MobileLedgerProfile) holder.itemView.getTag();
                 if (profile != null) Data.setCurrentProfile(profile);
             });
-            View.OnClickListener profileSelector = v -> {
-                holder.mRadioView.setChecked(true);
-            };
+            View.OnClickListener profileSelector = v -> holder.mRadioView.setChecked(true);
             holder.mTitle.setOnClickListener(profileSelector);
             holder.mSubTitle.setOnClickListener(profileSelector);
             Data.profile.addObserver((o, arg) -> {