mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-13 22:00:30 +05:30
Added dynamic color to Settings
This commit is contained in:
parent
afb1f39737
commit
ac2ea18dd2
@ -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);
|
||||||
@ -352,4 +353,4 @@ class SettingsActivity : AppCompatActivity(),
|
|||||||
startActivity(intent)
|
startActivity(intent)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user