1
0
Fork 0

For #9932: Fix navigation icon theme missing from migration UI

Setting the `navigationBarColor` is done in the ThemeManager for the
attached activity. Since the migration UI is separate from that, we did
not get this for free.
master
Jonathan Almeida 2020-04-14 17:00:33 -04:00 committed by Emily Kager
parent 89cfa3ea9a
commit c16283a923
1 changed files with 3 additions and 0 deletions

View File

@ -19,6 +19,7 @@ import androidx.recyclerview.widget.RecyclerView
import kotlinx.android.synthetic.main.activity_migration.*
import kotlinx.android.synthetic.main.migration_list_item.view.*
import mozilla.components.support.base.log.logger.Logger
import mozilla.components.support.ktx.android.content.getColorFromAttr
import mozilla.components.support.migration.AbstractMigrationProgressActivity
import mozilla.components.support.migration.AbstractMigrationService
import mozilla.components.support.migration.Migration
@ -47,6 +48,8 @@ class MigrationProgressActivity : AbstractMigrationProgressActivity() {
}
fun init() {
window.navigationBarColor = getColorFromAttr(R.attr.foundation)
val appName = migration_description.context.getString(R.string.app_name)
migration_description.apply {