Edit key: prevent the combination of change to primary user id and revocation
This commit is contained in:
@@ -339,6 +339,10 @@ public class EditKeyFragment extends LoaderFragment implements
|
|||||||
mSaveKeyringParcel.mRevokeUserIds.remove(userId);
|
mSaveKeyringParcel.mRevokeUserIds.remove(userId);
|
||||||
} else {
|
} else {
|
||||||
mSaveKeyringParcel.mRevokeUserIds.add(userId);
|
mSaveKeyringParcel.mRevokeUserIds.add(userId);
|
||||||
|
// not possible to revoke and change to primary user id
|
||||||
|
if (mSaveKeyringParcel.mChangePrimaryUserId.equals(userId)) {
|
||||||
|
mSaveKeyringParcel.mChangePrimaryUserId = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user