Edit key: prevent the combination of change to primary user id and revocation

This commit is contained in:
Dominik Schürmann 2014-08-07 08:51:56 +02:00
parent ef67962c5d
commit bac767d184

View File

@ -339,6 +339,10 @@ public class EditKeyFragment extends LoaderFragment implements
mSaveKeyringParcel.mRevokeUserIds.remove(userId);
} else {
mSaveKeyringParcel.mRevokeUserIds.add(userId);
// not possible to revoke and change to primary user id
if (mSaveKeyringParcel.mChangePrimaryUserId.equals(userId)) {
mSaveKeyringParcel.mChangePrimaryUserId = null;
}
}
break;
}