show a loading progress bar at first app load
This commit is contained in:
parent
37f1f807f6
commit
63dedaa9b7
2 changed files with 18 additions and 0 deletions
|
|
@ -114,6 +114,8 @@ class MainActivity : SimpleActivity() {
|
|||
no_conversations_placeholder_2.setTextColor(properPrimaryColor)
|
||||
no_conversations_placeholder_2.underlineText()
|
||||
conversations_fastscroller.updateColors(properPrimaryColor)
|
||||
conversations_progress_bar.setIndicatorColor(properPrimaryColor)
|
||||
conversations_progress_bar.trackColor = properPrimaryColor.adjustAlpha(LOWER_ALPHA)
|
||||
checkShortcut()
|
||||
(conversations_fab?.layoutParams as? CoordinatorLayout.LayoutParams)?.bottomMargin =
|
||||
navigationBarHeight + resources.getDimension(R.dimen.activity_margin).toInt()
|
||||
|
|
@ -361,6 +363,9 @@ class MainActivity : SimpleActivity() {
|
|||
if (!hasConversations && config.appRunCount == 1) {
|
||||
no_conversations_placeholder.text = getString(R.string.loading_messages)
|
||||
no_conversations_placeholder_2.beGone()
|
||||
conversations_progress_bar.beVisible()
|
||||
} else {
|
||||
conversations_progress_bar.beGone()
|
||||
}
|
||||
|
||||
try {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue