From: Damyan Ivanov Date: Thu, 24 Sep 2020 16:12:50 +0000 (+0000) Subject: allow removal of the last profile X-Git-Tag: v0.16.0~52 X-Git-Url: https://git.ktnx.net/?p=mobile-ledger-staging.git;a=commitdiff_plain;h=55dffdf66e7a8dc32b00df4cfd0c9d399c17aaaa allow removal of the last profile nothing bad about that, the welcome screen will be activated --- 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);