add an option to display past events in the events list view
This commit is contained in:
parent
791d9fe66b
commit
e5ac8a3e77
|
@ -53,6 +53,7 @@ class SettingsActivity : SimpleActivity() {
|
|||
setupReminderSound()
|
||||
setupSnoozeDelay()
|
||||
setupEventReminder()
|
||||
setupDisplayPastEvents()
|
||||
updateTextColors(settings_holder)
|
||||
checkPrimaryColor()
|
||||
}
|
||||
|
@ -220,6 +221,10 @@ class SettingsActivity : SimpleActivity() {
|
|||
}
|
||||
}
|
||||
|
||||
private fun setupDisplayPastEvents() {
|
||||
|
||||
}
|
||||
|
||||
override fun onActivityResult(requestCode: Int, resultCode: Int, resultData: Intent?) {
|
||||
if (resultCode == RESULT_OK) {
|
||||
if (requestCode == GET_RINGTONE_URI) {
|
||||
|
|
|
@ -242,6 +242,7 @@
|
|||
android:background="@color/divider_strong"/>
|
||||
|
||||
<com.simplemobiletools.commons.views.MyTextView
|
||||
android:id="@+id/weekly_view_label"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/big_margin"
|
||||
|
@ -329,6 +330,7 @@
|
|||
android:background="@color/divider_strong"/>
|
||||
|
||||
<com.simplemobiletools.commons.views.MyTextView
|
||||
android:id="@+id/monthly_view_label"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/big_margin"
|
||||
|
@ -359,5 +361,58 @@
|
|||
android:text="@string/week_numbers"/>
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/events_list_view_divider"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1px"
|
||||
android:background="@color/divider_strong"/>
|
||||
|
||||
<com.simplemobiletools.commons.views.MyTextView
|
||||
android:id="@+id/simple_event_list_label"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/big_margin"
|
||||
android:layout_marginStart="@dimen/big_margin"
|
||||
android:layout_marginTop="@dimen/activity_margin"
|
||||
android:alpha="0.6"
|
||||
android:text="@string/simple_event_list"
|
||||
android:textAllCaps="true"
|
||||
android:textColor="@color/divider_strong"
|
||||
android:textSize="@dimen/small_text_size"/>
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/settings_display_past_events_holder"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="?attr/selectableItemBackground"
|
||||
android:paddingBottom="@dimen/bigger_margin"
|
||||
android:paddingLeft="@dimen/activity_margin"
|
||||
android:paddingRight="@dimen/activity_margin"
|
||||
android:paddingTop="@dimen/bigger_margin">
|
||||
|
||||
<com.simplemobiletools.commons.views.MyTextView
|
||||
android:id="@+id/settings_display_past_events_label"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_toLeftOf="@+id/settings_display_past_events"
|
||||
android:layout_toStartOf="@+id/settings_display_past_events"
|
||||
android:paddingLeft="@dimen/medium_margin"
|
||||
android:paddingRight="@dimen/medium_margin"
|
||||
android:text="@string/display_past_events"/>
|
||||
|
||||
<com.simplemobiletools.commons.views.MyTextView
|
||||
android:id="@+id/settings_display_past_events"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_marginEnd="@dimen/small_margin"
|
||||
android:layout_marginRight="@dimen/small_margin"
|
||||
android:background="@null"
|
||||
android:clickable="false"/>
|
||||
|
||||
</RelativeLayout>
|
||||
</LinearLayout>
|
||||
</ScrollView>
|
||||
|
|
|
@ -184,6 +184,7 @@
|
|||
<string name="no_ringtone_selected">Kein Klingelton gewählt</string>
|
||||
<string name="day_end_before_start">Terminbeginn kann nicht vor Terminende liegen</string>
|
||||
<string name="google_sync">Google Sync</string>
|
||||
<string name="display_past_events">Display events in the past</string>
|
||||
<string name="snooze_delay">Postpone reminder with Snooze by</string>
|
||||
|
||||
<plurals name="minutes">
|
||||
|
|
|
@ -184,6 +184,7 @@
|
|||
<string name="no_ringtone_selected">Ninguno</string>
|
||||
<string name="day_end_before_start">El día no puede terminar antes de que comience</string>
|
||||
<string name="google_sync">Sincronización de Google</string>
|
||||
<string name="display_past_events">Display events in the past</string>
|
||||
<string name="snooze_delay">Postpone reminder with Snooze by</string>
|
||||
|
||||
<plurals name="minutes">
|
||||
|
|
|
@ -184,6 +184,7 @@
|
|||
<string name="no_ringtone_selected">Aucune</string>
|
||||
<string name="day_end_before_start">Le jour ne peut pas se terminer plus tôt qu\'il ne débute</string>
|
||||
<string name="google_sync">Synchronisation Google</string>
|
||||
<string name="display_past_events">Display events in the past</string>
|
||||
<string name="snooze_delay">Postpone reminder with Snooze by</string>
|
||||
|
||||
<plurals name="minutes">
|
||||
|
|
|
@ -184,6 +184,7 @@
|
|||
<string name="no_ringtone_selected">None</string>
|
||||
<string name="day_end_before_start">The day cannot end earlier than it starts</string>
|
||||
<string name="google_sync">Google sync</string>
|
||||
<string name="display_past_events">Display events in the past</string>
|
||||
<string name="snooze_delay">Postpone reminder with Snooze by</string>
|
||||
|
||||
<plurals name="minutes">
|
||||
|
|
|
@ -184,6 +184,7 @@
|
|||
<string name="no_ringtone_selected">None</string>
|
||||
<string name="day_end_before_start">The day cannot end earlier than it starts</string>
|
||||
<string name="google_sync">Google sync</string>
|
||||
<string name="display_past_events">Display events in the past</string>
|
||||
<string name="snooze_delay">Postpone reminder with Snooze by</string>
|
||||
|
||||
<plurals name="minutes">
|
||||
|
|
|
@ -184,6 +184,7 @@
|
|||
<string name="no_ringtone_selected">None</string>
|
||||
<string name="day_end_before_start">The day cannot end earlier than it starts</string>
|
||||
<string name="google_sync">Google sync</string>
|
||||
<string name="display_past_events">Display events in the past</string>
|
||||
<string name="snooze_delay">Postpone reminder with Snooze by</string>
|
||||
|
||||
<plurals name="minutes">
|
||||
|
|
|
@ -184,6 +184,7 @@
|
|||
<string name="no_ringtone_selected">ללא</string>
|
||||
<string name="day_end_before_start">היום לא יכול להסתיים מוקדם משהוא מתחיל</string>
|
||||
<string name="google_sync">Google sync</string>
|
||||
<string name="display_past_events">Display events in the past</string>
|
||||
<string name="snooze_delay">Postpone reminder with Snooze by</string>
|
||||
|
||||
<plurals name="minutes">
|
||||
|
|
|
@ -184,6 +184,7 @@
|
|||
<string name="no_ringtone_selected">None</string>
|
||||
<string name="day_end_before_start">The day cannot end earlier than it starts</string>
|
||||
<string name="google_sync">Google sync</string>
|
||||
<string name="display_past_events">Display events in the past</string>
|
||||
<string name="snooze_delay">Postpone reminder with Snooze by</string>
|
||||
|
||||
<plurals name="minutes">
|
||||
|
|
|
@ -184,6 +184,7 @@
|
|||
<string name="no_ringtone_selected">Nenhum</string>
|
||||
<string name="day_end_before_start">O dia final não pode ser antes do início</string>
|
||||
<string name="google_sync">Sincronização Google</string>
|
||||
<string name="display_past_events">Display events in the past</string>
|
||||
<string name="snooze_delay">Postpone reminder with Snooze by</string>
|
||||
|
||||
<plurals name="minutes">
|
||||
|
|
|
@ -184,6 +184,7 @@
|
|||
<string name="no_ringtone_selected">Nenhum</string>
|
||||
<string name="day_end_before_start">O dia final não pode ser antes do inicial</string>
|
||||
<string name="google_sync">Sincronização Google</string>
|
||||
<string name="display_past_events">Display events in the past</string>
|
||||
<string name="snooze_delay">Postpone reminder with Snooze by</string>
|
||||
|
||||
<plurals name="minutes">
|
||||
|
|
|
@ -184,6 +184,7 @@
|
|||
<string name="no_ringtone_selected">Нет</string>
|
||||
<string name="day_end_before_start">Конец дня не может быть раньше начала</string>
|
||||
<string name="google_sync">Синхронизация с Google</string>
|
||||
<string name="display_past_events">Display events in the past</string>
|
||||
<string name="snooze_delay">Postpone reminder with Snooze by</string>
|
||||
|
||||
<plurals name="minutes">
|
||||
|
|
|
@ -191,6 +191,7 @@
|
|||
<string name="no_ringtone_selected">Žiadna</string>
|
||||
<string name="day_end_before_start">Deň nemôže skončiť skôr než začne</string>
|
||||
<string name="google_sync">Google synchronizácia</string>
|
||||
<string name="display_past_events">Zobraziť minulé udalosti spred</string>
|
||||
<string name="snooze_delay">Posunúť pripomienku s Odložiť o</string>
|
||||
|
||||
<plurals name="minutes">
|
||||
|
|
|
@ -184,6 +184,7 @@
|
|||
<string name="no_ringtone_selected">Ingen</string>
|
||||
<string name="day_end_before_start">Dagen kan inte börja innan den tar slut</string>
|
||||
<string name="google_sync">Google sync</string>
|
||||
<string name="display_past_events">Display events in the past</string>
|
||||
<string name="snooze_delay">Postpone reminder with Snooze by</string>
|
||||
|
||||
<plurals name="minutes">
|
||||
|
|
|
@ -184,6 +184,7 @@
|
|||
<string name="no_ringtone_selected">Boş</string>
|
||||
<string name="day_end_before_start">Gün başlamadan önce bitemez</string>
|
||||
<string name="google_sync">Google senkronizasyonu</string>
|
||||
<string name="display_past_events">Display events in the past</string>
|
||||
<string name="snooze_delay">Postpone reminder with Snooze by</string>
|
||||
|
||||
<plurals name="minutes">
|
||||
|
|
|
@ -184,6 +184,7 @@
|
|||
<string name="no_ringtone_selected">None</string>
|
||||
<string name="day_end_before_start">The day cannot end earlier than it starts</string>
|
||||
<string name="google_sync">Google sync</string>
|
||||
<string name="display_past_events">Display events in the past</string>
|
||||
<string name="snooze_delay">Postpone reminder with Snooze by</string>
|
||||
|
||||
<plurals name="minutes">
|
||||
|
|
Loading…
Reference in New Issue