0
0
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:
Ishan09811 2024-12-31 11:38:54 +05:30 committed by GitHub
parent 455bf3eefa
commit 8c88e02ed2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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()
}
}