Skip to content

Commit

Permalink
Updated ResultDetailActivity
Browse files Browse the repository at this point in the history
  • Loading branch information
aanorbel committed Feb 19, 2024
1 parent f81263c commit 60db89f
Showing 1 changed file with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -203,13 +203,10 @@ class ResultDetailActivity : AbstractActivity(), View.OnClickListener, OnConfirm
*/
private fun setThemeFromDescriptor() {
result.getDescriptor(this).get().let { desriptor ->
if (desriptor is OONIDescriptor<*>) {
val color = ContextCompat.getColor(this@ResultDetailActivity, desriptor.color)
binding.toolbar.setBackgroundColor(color)
binding.appBar.setBackgroundColor(color)
binding.tabLayout.setBackgroundColor(color)
window.statusBarColor = color
}
binding.toolbar.setBackgroundColor(desriptor.color)
binding.appBar.setBackgroundColor(desriptor.color)
binding.tabLayout.setBackgroundColor(desriptor.color)
window.statusBarColor = desriptor.color
}
}

Expand Down

0 comments on commit 60db89f

Please sign in to comment.