mirror of
https://github.com/Ishan09811/pine.git
synced 2025-04-28 09:35:08 +00:00
Update AppDialog.kt
This commit is contained in:
parent
455bf3eefa
commit
8c88e02ed2
@ -212,9 +212,11 @@ class AppDialog : BottomSheetDialogFragment() {
|
||||
}
|
||||
|
||||
if (savedInstanceState == null) {
|
||||
val onAppliedCallback = DynamicColors.OnAppliedCallback { activity ->
|
||||
activity.recreate()
|
||||
}
|
||||
val contentBasedTheme = DynamicColorsOptions.Builder().setContentBasedSource(item.bitmapIcon).build()
|
||||
DynamicColors.applyToActivityIfAvailable(requireActivity(), contentBasedTheme)
|
||||
requireActivity().recreate()
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user