Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 31599988 authored by Walter Jang's avatar Walter Jang Committed by Android (Google) Code Review
Browse files

Merge "Don't allow newly writable contact splits" into mnc-dev

parents 3c4d041b a35ef54b
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -754,8 +754,9 @@ abstract public class ContactEditorBaseFragment extends Fragment implements
        } else if (Intent.ACTION_EDIT.equals(mAction) ||
                ContactEditorBaseActivity.ACTION_EDIT.equals(mAction)) {
            HelpUtils.prepareHelpMenuItem(mContext, helpMenu, R.string.help_url_people_edit);
            // Split only if more than one raw profile and not a user profile
            splitMenu.setVisible(mState.size() > 1 && !isEditingUserProfile());
            // Split only if there is more than one raw (non-user profile) contact and doing so
            // won't result in an empty contact
            splitMenu.setVisible(mState.size() > 1 && !isEditingUserProfile() && !mHasNewContact);
            // Cannot join a user profile
            joinMenu.setVisible(!isEditingUserProfile());
            deleteMenu.setVisible(!mDisableDeleteMenuOption);