forked from GitHub-Mirror/riotX-android
clean
This commit is contained in:
parent
4aae1f78d8
commit
dba4df6836
@ -17,7 +17,6 @@
|
|||||||
package im.vector.riotx.features.home
|
package im.vector.riotx.features.home
|
||||||
|
|
||||||
import android.app.ProgressDialog
|
import android.app.ProgressDialog
|
||||||
import android.app.TimePickerDialog
|
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import android.content.Intent
|
import android.content.Intent
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
@ -119,19 +118,19 @@ class HomeActivity : VectorBaseActivity(), ToolbarConfigurable {
|
|||||||
intent.removeExtra(EXTRA_CLEAR_EXISTING_NOTIFICATION)
|
intent.removeExtra(EXTRA_CLEAR_EXISTING_NOTIFICATION)
|
||||||
}
|
}
|
||||||
|
|
||||||
activeSessionHolder.getSafeActiveSession()?.getLiveStatus()?.observe(this, Observer {
|
activeSessionHolder.getSafeActiveSession()?.getLiveStatus()?.observe(this, Observer { sprogress ->
|
||||||
Timber.e("${it?.statusText?.let { getString(it) }} ${it?.percentProgress}")
|
Timber.e("${sprogress?.statusText?.let { getString(it) }} ${sprogress?.percentProgress}")
|
||||||
if (it == null) {
|
if (sprogress == null) {
|
||||||
waiting_view.isVisible = false
|
waiting_view.isVisible = false
|
||||||
} else {
|
} else {
|
||||||
waiting_view_status_horizontal_progress.apply {
|
waiting_view_status_horizontal_progress.apply {
|
||||||
isIndeterminate = false
|
isIndeterminate = false
|
||||||
max = 100
|
max = 100
|
||||||
progress = it.percentProgress
|
progress = sprogress.percentProgress
|
||||||
isVisible = true
|
isVisible = true
|
||||||
}
|
}
|
||||||
waiting_view_status_text.apply {
|
waiting_view_status_text.apply {
|
||||||
text = it.statusText?.let { res -> getString(res) }
|
text = sprogress.statusText?.let { getString(it) }
|
||||||
isVisible = true
|
isVisible = true
|
||||||
}
|
}
|
||||||
waiting_view.isVisible = true
|
waiting_view.isVisible = true
|
||||||
|
Loading…
Reference in New Issue
Block a user