Skip to content

Commit

Permalink
Merge branch 'dev/ooni-run-v2' of github.com:ooni/probe-android into …
Browse files Browse the repository at this point in the history
…issues/2594
  • Loading branch information
aanorbel committed Feb 19, 2024
2 parents 8962eb3 + 00f9abb commit 969788d
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 969788d

Please sign in to comment.