Compare commits
2 commits
Author | SHA1 | Date | |
---|---|---|---|
|
8398249de7 | ||
|
d43a3cc99e |
1 changed files with 2 additions and 1 deletions
|
@ -273,7 +273,8 @@ class PassListActivity : PassAndroidActivity() {
|
|||
|
||||
val empty = passStore.classifier.topicByIdMap.isEmpty()
|
||||
emptyView.visibility = if (empty) View.VISIBLE else View.GONE
|
||||
tab_layout.visibility = if (empty) View.GONE else View.VISIBLE
|
||||
val onlyDefaultTopicExists = passStore.classifier.getTopics().all { it == getString(R.string.topic_new) }
|
||||
tab_layout.visibility = if (onlyDefaultTopicExists) View.GONE else View.VISIBLE
|
||||
}
|
||||
|
||||
private fun setupWithViewPagerIfNeeded() {
|
||||
|
|
Loading…
Reference in a new issue