mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-02-28 17:17:57 +01:00
squeeze the tab index checker
This commit is contained in:
parent
df649f5bdd
commit
47bf6addf1
@ -598,20 +598,10 @@ class MainActivity : SimpleActivity(), RefreshContactsListener {
|
|||||||
return when (config.defaultTab) {
|
return when (config.defaultTab) {
|
||||||
TAB_LAST_USED -> config.lastUsedViewPagerPage
|
TAB_LAST_USED -> config.lastUsedViewPagerPage
|
||||||
TAB_CONTACTS -> 0
|
TAB_CONTACTS -> 0
|
||||||
TAB_FAVORITES -> {
|
TAB_FAVORITES -> if (showTabsMask and TAB_CONTACTS > 0) 1 else 0
|
||||||
if (showTabsMask and TAB_CONTACTS > 0) {
|
|
||||||
1
|
|
||||||
} else {
|
|
||||||
0
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else -> {
|
else -> {
|
||||||
if (showTabsMask and TAB_CONTACTS > 0) {
|
if (showTabsMask and TAB_CONTACTS > 0) {
|
||||||
if (showTabsMask and TAB_FAVORITES > 0) {
|
if (showTabsMask and TAB_FAVORITES > 0) 2 else 1
|
||||||
2
|
|
||||||
} else {
|
|
||||||
1
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
0
|
0
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user