set namesource to extra field even if names match
@@ -237,8 +237,10 @@ static void setNameAndCommentFromExtraFields(final ZipArchiveEntry ze,
final String originalName = ze.getName();
final String newName = getUnicodeStringIfOriginalMatches(name,
originalNameBytes);
- if (newName != null && !originalName.equals(newName)) {
+ if (newName != null) {
+ if (!originalName.equals(newName)) {
ze.setName(newName);
+ }
ze.setNameSource(ZipArchiveEntry.NameSource.UNICODE_EXTRA_FIELD);
}
