From 55dffdf66e7a8dc32b00df4cfd0c9d399c17aaaa Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Thu, 24 Sep 2020 16:12:50 +0000 Subject: [PATCH] allow removal of the last profile nothing bad about that, the welcome screen will be activated --- .../ktnx/mobileledger/ui/profiles/ProfileDetailFragment.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/profiles/ProfileDetailFragment.java b/app/src/main/java/net/ktnx/mobileledger/ui/profiles/ProfileDetailFragment.java index ec3ed661..fafd8b41 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/profiles/ProfileDetailFragment.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/profiles/ProfileDetailFragment.java @@ -139,8 +139,6 @@ public class ProfileDetailFragment extends Fragment { return false; }); final ArrayList profiles = Data.profiles.getValue(); - menuDeleteProfile.setVisible( - (mProfile != null) && (profiles != null) && (profiles.size() > 1)); if (BuildConfig.DEBUG) { final MenuItem menuWipeProfileData = menu.findItem(R.id.menuWipeData); -- 2.39.5