mirror of
https://github.com/SimpleMobileTools/Simple-Dialer.git
synced 2025-06-05 21:49:23 +02:00
Changed condition formatting
This commit is contained in:
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user