Skip to content
This repository was archived by the owner on May 4, 2023. It is now read-only.

Commit 6298b13

Browse files
committed
Reduce strictness of low quality filter on descriptions.
1 parent d7259be commit 6298b13

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/src/main/java/com/fox2code/mmm/utils/PropUtils.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,9 +370,8 @@ public static boolean isLowQualityModule(ModuleInfo moduleInfo) {
370370
return moduleInfo == null || moduleInfo.hasFlag(ModuleInfo.FLAG_METADATA_INVALID)
371371
|| moduleInfo.name.length() < 3 || moduleInfo.versionCode < 0
372372
|| moduleInfo.author == null || !TextUtils.isGraphic(moduleInfo.author)
373-
|| (description = moduleInfo.description) == null || !TextUtils.isGraphic(description)
373+
|| isNullString(description = moduleInfo.description) || !TextUtils.isGraphic(description)
374374
|| description.toLowerCase(Locale.ROOT).equals(moduleInfo.name.toLowerCase(Locale.ROOT))
375-
|| description.length() < Math.min(Math.max(moduleInfo.name.length() + 4, 16), 24)
376375
|| (getFlagsForModule(moduleInfo.id) & FLAG_COMPAT_LOW_QUALITY) != 0;
377376
}
378377

0 commit comments

Comments
 (0)