From ac2ea18dd2631464487228702ed425a58b8775ea Mon Sep 17 00:00:00 2001 From: nin0dev <75569739+nin0-dev@users.noreply.github.com> Date: Thu, 19 May 2022 12:31:17 -0400 Subject: [PATCH] Added dynamic color to Settings --- app/src/main/java/com/github/libretube/SettingsActivity.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/github/libretube/SettingsActivity.kt b/app/src/main/java/com/github/libretube/SettingsActivity.kt index cd842d772..aef42ab03 100644 --- a/app/src/main/java/com/github/libretube/SettingsActivity.kt +++ b/app/src/main/java/com/github/libretube/SettingsActivity.kt @@ -36,6 +36,7 @@ class SettingsActivity : AppCompatActivity(), SharedPreferences.OnSharedPreferenceChangeListener{ override fun onCreate(savedInstanceState: Bundle?) { + DynamicColors.applyToActivityIfAvailable(this) super.onCreate(savedInstanceState) if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) { overridePendingTransition(50, 50); @@ -352,4 +353,4 @@ class SettingsActivity : AppCompatActivity(), startActivity(intent) } -} \ No newline at end of file +}