]> git.ktnx.net Git - mobile-ledger.git/commitdiff
allow removal of the last profile
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Thu, 24 Sep 2020 16:12:50 +0000 (16:12 +0000)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Thu, 24 Sep 2020 16:12:50 +0000 (16:12 +0000)
nothing bad about that, the welcome screen will be activated

app/src/main/java/net/ktnx/mobileledger/ui/profiles/ProfileDetailFragment.java

index ec3ed661966466c77e356b68cd369b5c4354747f..fafd8b41123b1014cb8b05cc4143de16edd55aff 100644 (file)
@@ -139,8 +139,6 @@ public class ProfileDetailFragment extends Fragment {
             return false;
         });
         final ArrayList<MobileLedgerProfile> profiles = Data.profiles.getValue();
-        menuDeleteProfile.setVisible(
-                (mProfile != null) && (profiles != null) && (profiles.size() > 1));
 
         if (BuildConfig.DEBUG) {
             final MenuItem menuWipeProfileData = menu.findItem(R.id.menuWipeData);