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_FAVORITES -> if (showTabsMask and TAB_CONTACTS > 0) 1 else 0
else -> {
if (showTabsMask and TAB_CONTACTS > 0) {
if (showTabsMask and TAB_FAVORITES > 0 && showTabsMask and TAB_CALL_HISTORY > 0) 2
else if (showTabsMask and TAB_CALL_HISTORY > 0) 1
else 0
if (showTabsMask and TAB_CALL_HISTORY > 0) {
if (showTabsMask and TAB_CONTACTS > 0) {
if (showTabsMask and TAB_FAVORITES > 0) {
2
} else {
1
}
} else {
if (showTabsMask and TAB_FAVORITES > 0) {
1
} else {
0
}
}
} else {
if (showTabsMask and TAB_FAVORITES > 0 && showTabsMask and TAB_CALL_HISTORY > 0) 1 else 0
0
}
}
}