Notifications can now show type when additional string is empty

This commit is contained in:
Deniz Düzgören
2019-09-18 16:24:12 +02:00
parent be810e5bfb
commit 1414cdbb38
2 changed files with 4 additions and 6 deletions
@@ -142,17 +142,15 @@ internal object HelperFunctions {
return true
}
if (coursePreference.isEmpty() && classPreference.isNotEmpty()) {
if (group.isNotEmpty() && group != "") {
if (group.isNotEmpty()) {
if (classPreference.contains(group) || group.contains(classPreference)) {
return true
}
}
} else if (classPreference.isNotEmpty() && coursePreference.isNotEmpty()) {
if (group != "" && course != "") {
if (coursePreference.contains(course)) {
if (classPreference.contains(group) || group.contains(classPreference)) {
return true
}
if ((classPreference.contains(group) || group.contains(classPreference)) && coursePreference.contains(course)) {
return true
}
}
}