mirror of
https://github.com/FossifyOrg/Clock.git
synced 2026-06-11 15:58:57 -04:00
Fix crash in alarm fragment
This commit is contained in:
@@ -154,9 +154,12 @@ class AlarmFragment : Fragment(), ToggleAlarmInterface {
|
||||
}
|
||||
} else {
|
||||
currAdapter.apply {
|
||||
val context = context
|
||||
updatePrimaryColor()
|
||||
updateBackgroundColor(requireContext().getProperBackgroundColor())
|
||||
updateTextColor(requireContext().getProperTextColor())
|
||||
if (context != null) {
|
||||
updateBackgroundColor(context.getProperBackgroundColor())
|
||||
updateTextColor(context.getProperTextColor())
|
||||
}
|
||||
updateItems(alarms)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user