Changed condition formatting

This commit is contained in:
Agnieszka C
2021-10-09 22:34:56 +02:00
parent ee399c372f
commit c5427b5051

View File

@ -374,12 +374,22 @@ class MainActivity : SimpleActivity() {
TAB_CONTACTS -> 0 TAB_CONTACTS -> 0
TAB_FAVORITES -> if (showTabsMask and TAB_CONTACTS > 0) 1 else 0 TAB_FAVORITES -> if (showTabsMask and TAB_CONTACTS > 0) 1 else 0
else -> { else -> {
if (showTabsMask and TAB_CALL_HISTORY > 0) {
if (showTabsMask and TAB_CONTACTS > 0) { if (showTabsMask and TAB_CONTACTS > 0) {
if (showTabsMask and TAB_FAVORITES > 0 && showTabsMask and TAB_CALL_HISTORY > 0) 2 if (showTabsMask and TAB_FAVORITES > 0) {
else if (showTabsMask and TAB_CALL_HISTORY > 0) 1 2
else 0
} else { } else {
if (showTabsMask and TAB_FAVORITES > 0 && showTabsMask and TAB_CALL_HISTORY > 0) 1 else 0 1
}
} else {
if (showTabsMask and TAB_FAVORITES > 0) {
1
} else {
0
}
}
} else {
0
} }
} }
} }