Added dynamic color to Settings

This commit is contained in:
nin0dev 2022-05-19 12:31:17 -04:00 committed by GitHub
parent afb1f39737
commit ac2ea18dd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,6 +36,7 @@ class SettingsActivity : AppCompatActivity(),
SharedPreferences.OnSharedPreferenceChangeListener{ SharedPreferences.OnSharedPreferenceChangeListener{
override fun onCreate(savedInstanceState: Bundle?) { override fun onCreate(savedInstanceState: Bundle?) {
DynamicColors.applyToActivityIfAvailable(this)
super.onCreate(savedInstanceState) super.onCreate(savedInstanceState)
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
overridePendingTransition(50, 50); overridePendingTransition(50, 50);