mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-02-02 03:36:50 +01:00
minor style update
This commit is contained in:
parent
442a8ac7e7
commit
508216242b
@ -147,7 +147,8 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener {
|
||||
|
||||
if (config.storedView == WEEKLY_VIEW) {
|
||||
if (mStoredIsSundayFirst != config.isSundayFirst || mStoredUse24HourFormat != config.use24HourFormat
|
||||
|| mStoredMidnightSpan != config.showMidnightSpanningEventsAtTop || mStoredStartWeekWithCurrentDay != config.startWeekWithCurrentDay) {
|
||||
|| mStoredMidnightSpan != config.showMidnightSpanningEventsAtTop || mStoredStartWeekWithCurrentDay != config.startWeekWithCurrentDay
|
||||
) {
|
||||
updateViewPager()
|
||||
}
|
||||
}
|
||||
@ -611,6 +612,7 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (config.addAnniversariesAutomatically) {
|
||||
addPrivateEvents(false, privateContacts, config.anniversaryReminders) { eventsFound, eventsAdded ->
|
||||
addContactEvents(false, config.anniversaryReminders, eventsFound, eventsAdded) {
|
||||
@ -855,7 +857,7 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener {
|
||||
}
|
||||
|
||||
private fun getThisWeekDateTime(): String {
|
||||
return if(! config.startWeekWithCurrentDay) {
|
||||
return if (!config.startWeekWithCurrentDay) {
|
||||
val currentOffsetHours = TimeZone.getDefault().rawOffset / 1000 / 60 / 60
|
||||
|
||||
// not great, not terrible
|
||||
|
Loading…
x
Reference in New Issue
Block a user