No issue: Update Migration UI with new API
parent
af3726a505
commit
02b4582c8d
|
@ -63,7 +63,7 @@ class MigrationProgressActivity : AbstractMigrationProgressActivity() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onMigrationCompleted() {
|
override fun onMigrationCompleted(results: MigrationResults) {
|
||||||
// Enable clicking the finish button
|
// Enable clicking the finish button
|
||||||
migration_button.apply {
|
migration_button.apply {
|
||||||
isEnabled = true
|
isEnabled = true
|
||||||
|
@ -71,9 +71,8 @@ class MigrationProgressActivity : AbstractMigrationProgressActivity() {
|
||||||
setBackgroundColor(ContextCompat.getColor(context, R.color.button_text_color))
|
setBackgroundColor(ContextCompat.getColor(context, R.color.button_text_color))
|
||||||
setTextColor(ContextCompat.getColor(context, R.color.white_color))
|
setTextColor(ContextCompat.getColor(context, R.color.white_color))
|
||||||
}
|
}
|
||||||
store.state.results?.let {
|
// Keep the results list up-to-date.
|
||||||
statusAdapter.submitList(it.toItemList())
|
statusAdapter.submitList(results.toItemList())
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onMigrationStateChanged(progress: MigrationProgress, results: MigrationResults) {
|
override fun onMigrationStateChanged(progress: MigrationProgress, results: MigrationResults) {
|
||||||
|
|
Loading…
Reference in New Issue