adding a new option for deleting only the future occurrences of events

This commit is contained in:
tibbi 2018-06-12 22:36:45 +02:00
parent e6198963cb
commit 3263eedadd
30 changed files with 38 additions and 1 deletions

View File

@ -470,8 +470,9 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener {
try {
val formatter = SimpleDateFormat(format, Locale.getDefault())
val date = formatter.parse(startDate)
if (date.year < 70)
if (date.year < 70) {
date.year = 70
}
val timestamp = (date.time / 1000).toInt()
val source = if (birthdays) SOURCE_CONTACT_BIRTHDAY else SOURCE_CONTACT_ANNIVERSARY

View File

@ -39,6 +39,14 @@
android:paddingTop="@dimen/normal_margin"
android:text="@string/delete_one_only"/>
<com.simplemobiletools.commons.views.MyCompatRadioButton
android:id="@+id/delete_event_future"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingBottom="@dimen/normal_margin"
android:paddingTop="@dimen/normal_margin"
android:text="@string/delete_future_occurrences"/>
<com.simplemobiletools.commons.views.MyCompatRadioButton
android:id="@+id/delete_event_all"
android:layout_width="match_parent"

View File

@ -44,6 +44,7 @@
<string name="event_is_repeatable">Bu hadisə təkrarlanabilər</string>
<string name="selection_contains_repetition">Seçim təkrarlanan hadisələr ehtiva edir</string>
<string name="delete_one_only">Yalnız seçilmiş hadisəni sil</string>
<string name="delete_future_occurrences">Delete this and all future occurrences</string>
<string name="delete_all_occurrences">Bütün hadisələri sil</string>
<string name="update_one_only">Yalnız seçilmiş hadisəni yenilə</string>
<string name="update_all_occurrences">Bütün hadisələri yenilə</string>

View File

@ -44,6 +44,7 @@
<string name="event_is_repeatable">An darvoud a c\'hall addegouezhout</string>
<string name="selection_contains_repetition">Darvoudoù a c\'hall addegouezhout a zo en diuzad</string>
<string name="delete_one_only">Dilemel an degouezh bremanel nemetken</string>
<string name="delete_future_occurrences">Delete this and all future occurrences</string>
<string name="delete_all_occurrences">Dilemel an holl zegouezhioù</string>
<string name="update_one_only">Hizivaat an degouezh diuzet hepken</string>
<string name="update_all_occurrences">Hizivaat an holl zegouezhioù</string>

View File

@ -44,6 +44,7 @@
<string name="event_is_repeatable">Událost se opakuje</string>
<string name="selection_contains_repetition">Výběr zahrnuje opakující se události</string>
<string name="delete_one_only">Vymazat pouze vybrané výskyty</string>
<string name="delete_future_occurrences">Delete this and all future occurrences</string>
<string name="delete_all_occurrences">Vymazat všechny výskyty</string>
<string name="update_one_only">Změnit pouze vybrané výskyty</string>
<string name="update_all_occurrences">Změnit všechny výskyty</string>

View File

@ -44,6 +44,7 @@
<string name="event_is_repeatable">Begivenheden kan gentages</string>
<string name="selection_contains_repetition">Valget indeholder gentagne begivenheder</string>
<string name="delete_one_only">Slet kun denne forekomst</string>
<string name="delete_future_occurrences">Delete this and all future occurrences</string>
<string name="delete_all_occurrences">Slet alle forekomster</string>
<string name="update_one_only">Opdater kun denne forekomst</string>
<string name="update_all_occurrences">Opdater alle forekomster</string>

View File

@ -44,6 +44,7 @@
<string name="event_is_repeatable">Termin ist wiederholbar</string>
<string name="selection_contains_repetition">Die Auswahl enthält Ereignisse mit Wiederholungen</string>
<string name="delete_one_only">Lösche nur die ausgewählte Wiederholung</string>
<string name="delete_future_occurrences">Delete this and all future occurrences</string>
<string name="delete_all_occurrences">Lösche alle Wiederholungen</string>
<string name="update_one_only">Ändere nur die ausgewählte Wiederholung</string>
<string name="update_all_occurrences">Ändere alle Wiederholungen</string>

View File

@ -44,6 +44,7 @@
<string name="event_is_repeatable">Este evento se repite</string>
<string name="selection_contains_repetition">La selección contiene repetición de eventos</string>
<string name="delete_one_only">Eliminar sólo el evento seleccionado</string>
<string name="delete_future_occurrences">Delete this and all future occurrences</string>
<string name="delete_all_occurrences">Eliminar todos los eventos</string>
<string name="update_one_only">Actualizar sólo el evento seleccionado</string>
<string name="update_all_occurrences">Actualizar todos los eventos</string>

View File

@ -44,6 +44,7 @@
<string name="event_is_repeatable">L\'événement est répétable</string>
<string name="selection_contains_repetition">La sélection contient des événements avec répétition</string>
<string name="delete_one_only">Supprimer seulement l\'occurrence sélectionnée</string>
<string name="delete_future_occurrences">Delete this and all future occurrences</string>
<string name="delete_all_occurrences">Supprimer toutes les occurrences</string>
<string name="update_one_only">Mettre à jour seulement l\'occurrence sélectionnée</string>
<string name="update_all_occurrences">Mettre à jour toutes les occurrences</string>

View File

@ -44,6 +44,7 @@
<string name="event_is_repeatable">O evento é repetible</string>
<string name="selection_contains_repetition">A seleción contén eventos recurrentes</string>
<string name="delete_one_only">Eliminar só o evento selecionado</string>
<string name="delete_future_occurrences">Delete this and all future occurrences</string>
<string name="delete_all_occurrences">Eliminar todos os eventos</string>
<string name="update_one_only">Actualizar só o evento selecionado</string>
<string name="update_all_occurrences">Actualizar todos os eventos</string>

View File

@ -45,6 +45,7 @@
<string name="event_is_repeatable">The event is repeatable</string>
<string name="selection_contains_repetition">The selection contains repeating events</string>
<string name="delete_one_only">Delete the selected occurrence only</string>
<string name="delete_future_occurrences">Delete this and all future occurrences</string>
<string name="delete_all_occurrences">Delete all occurrences</string>
<string name="update_one_only">Update the selected occurrence only</string>
<string name="update_all_occurrences">Update all occurrences</string>

View File

@ -44,6 +44,7 @@
<string name="event_is_repeatable">Događaj je ponovljiv</string>
<string name="selection_contains_repetition">Odabir sadrži ponavljajuće događaje</string>
<string name="delete_one_only">Izbriši samo odabrano ponavljanje</string>
<string name="delete_future_occurrences">Delete this and all future occurrences</string>
<string name="delete_all_occurrences">Izbriši sva ponavljanja</string>
<string name="update_one_only">Ažuriraj samo odabrano ponavljanje</string>
<string name="update_all_occurrences">Ažuriraj sva ponavljanja</string>

View File

@ -44,6 +44,7 @@
<string name="event_is_repeatable">The event is repeatable</string>
<string name="selection_contains_repetition">The selection contains repeating events</string>
<string name="delete_one_only">Delete the selected occurrence only</string>
<string name="delete_future_occurrences">Delete this and all future occurrences</string>
<string name="delete_all_occurrences">Delete all occurrences</string>
<string name="update_one_only">Update the selected occurrence only</string>
<string name="update_all_occurrences">Update all occurrences</string>

View File

@ -44,6 +44,7 @@
<string name="event_is_repeatable">L\'evento è ripetibile</string>
<string name="selection_contains_repetition">La selezione contiene eventi ripetuti</string>
<string name="delete_one_only">Elimina solamente l\'occorenza selezionata</string>
<string name="delete_future_occurrences">Delete this and all future occurrences</string>
<string name="delete_all_occurrences">Elimina tutte le occorrenze</string>
<string name="update_one_only">Aggiorna solamente l\'occorenza selezionata</string>
<string name="update_all_occurrences">Aggiorna tutte le occorenze</string>

View File

@ -45,6 +45,7 @@
<string name="event_is_repeatable">The event is repeatable</string>
<string name="selection_contains_repetition">The selection contains repeating events</string>
<string name="delete_one_only">Delete the selected occurrence only</string>
<string name="delete_future_occurrences">Delete this and all future occurrences</string>
<string name="delete_all_occurrences">Delete all occurrences</string>
<string name="update_one_only">Update the selected occurrence only</string>
<string name="update_all_occurrences">Update all occurrences</string>

View File

@ -44,6 +44,7 @@
<string name="event_is_repeatable">The event is repeatable</string>
<string name="selection_contains_repetition">The selection contains repeating events</string>
<string name="delete_one_only">Delete the selected occurrence only</string>
<string name="delete_future_occurrences">Delete this and all future occurrences</string>
<string name="delete_all_occurrences">Delete all occurrences</string>
<string name="update_one_only">Update the selected occurrence only</string>
<string name="update_all_occurrences">Update all occurrences</string>

View File

@ -44,6 +44,7 @@
<string name="event_is_repeatable">반복 이벤트입니다</string>
<string name="selection_contains_repetition">선택한 항목에 반복되는 이벤트들이 있습니다</string>
<string name="delete_one_only">선택한 항목만 삭제</string>
<string name="delete_future_occurrences">Delete this and all future occurrences</string>
<string name="delete_all_occurrences">모든 항목 삭제</string>
<string name="update_one_only">선택한 항목만 변경</string>
<string name="update_all_occurrences">모든 항목 변경</string>

View File

@ -44,6 +44,7 @@
<string name="event_is_repeatable">Įvykis pakartojamas</string>
<string name="selection_contains_repetition">Pasirinkimas susideda iš pasikartojančių įvykių</string>
<string name="delete_one_only">Ištrinti tik pasirinktą įvykį</string>
<string name="delete_future_occurrences">Delete this and all future occurrences</string>
<string name="delete_all_occurrences">Ištrinti visus įvykius</string>
<string name="update_one_only">Atnaujinti tik pasirinktą įvykį</string>
<string name="update_all_occurrences">Atnaujinti visus įvykius</string>

View File

@ -44,6 +44,7 @@
<string name="event_is_repeatable">Hendelsen er repeterbar</string>
<string name="selection_contains_repetition">Markeringen inneholder gjentagende hendelser</string>
<string name="delete_one_only">Slett bare den merkede forekomsten</string>
<string name="delete_future_occurrences">Delete this and all future occurrences</string>
<string name="delete_all_occurrences">Slett alle forekomster</string>
<string name="update_one_only">Oppdater bare den merkede forekomsten</string>
<string name="update_all_occurrences">Oppdater alle forekomster</string>

View File

@ -44,6 +44,7 @@
<string name="event_is_repeatable">De afspraak wordt herhaald</string>
<string name="selection_contains_repetition">De selectie bevat herhaalde afspraken</string>
<string name="delete_one_only">Alleen huidige afspraak verwijderen</string>
<string name="delete_future_occurrences">Delete this and all future occurrences</string>
<string name="delete_all_occurrences">Al deze afspraken verwijderen</string>
<string name="update_one_only">Alleen huidige afspraak bijwerken</string>
<string name="update_all_occurrences">Alle afspraken bijwerken</string>

View File

@ -44,6 +44,7 @@
<string name="event_is_repeatable">Hendelsen er repeterbar</string>
<string name="selection_contains_repetition">Markeringen inneholder gjentagende hendelser</string>
<string name="delete_one_only">Slett bare den merkede forekomsten</string>
<string name="delete_future_occurrences">Delete this and all future occurrences</string>
<string name="delete_all_occurrences">Slett alle forekomster</string>
<string name="update_one_only">Oppdater bare den merkede forekomsten</string>
<string name="update_all_occurrences">Oppdater alle forekomster</string>

View File

@ -44,6 +44,7 @@
<string name="event_is_repeatable">Wydarzenie jest powtarzalne</string>
<string name="selection_contains_repetition">Wybór zawiera powtarzające się wydarzenia</string>
<string name="delete_one_only">Usuń tylko wybrane wystąpienie</string>
<string name="delete_future_occurrences">Delete this and all future occurrences</string>
<string name="delete_all_occurrences">Usuń wszystkie wystąpienia</string>
<string name="update_one_only">Zaktualizuj tylko wybrane wystąpienia</string>
<string name="update_all_occurrences">Zaktualizuj wszystkie wystąpienia</string>

View File

@ -44,6 +44,7 @@
<string name="event_is_repeatable">The event is repeatable</string>
<string name="selection_contains_repetition">A seleção contém eventos recorrentes</string>
<string name="delete_one_only">Apagar a ocorrência selecionada</string>
<string name="delete_future_occurrences">Delete this and all future occurrences</string>
<string name="delete_all_occurrences">Apagar todas as ocorrências</string>
<string name="update_one_only">Atualizar a ocorrência selecionada</string>
<string name="update_all_occurrences">Atualizar todas as ocorrências</string>

View File

@ -44,6 +44,7 @@
<string name="event_is_repeatable">O evento é repetível</string>
<string name="selection_contains_repetition">A seleção contém eventos recorrentes</string>
<string name="delete_one_only">Apagar a ocorrência selecionada</string>
<string name="delete_future_occurrences">Delete this and all future occurrences</string>
<string name="delete_all_occurrences">Apagar todas as ocorrências</string>
<string name="update_one_only">Atualizar a ocorrência selecionada</string>
<string name="update_all_occurrences">Atualizar todas as ocorrências</string>

View File

@ -44,6 +44,7 @@
<string name="event_is_repeatable">Это событие может повторяться</string>
<string name="selection_contains_repetition">В выбранном есть повторяющиеся события</string>
<string name="delete_one_only">Удалить только выбранное</string>
<string name="delete_future_occurrences">Delete this and all future occurrences</string>
<string name="delete_all_occurrences">Удалить все связанные</string>
<string name="update_one_only">Обновить только выбранное</string>
<string name="update_all_occurrences">Обновить все связанные</string>

View File

@ -44,6 +44,7 @@
<string name="event_is_repeatable">Udalosť je opakujúca sa</string>
<string name="selection_contains_repetition">Výber obsahuje opakujúce sa udalosti</string>
<string name="delete_one_only">Vymazať iba označené opakovania</string>
<string name="delete_future_occurrences">Vymazať toto a všetky budúce opakovania</string>
<string name="delete_all_occurrences">Vymazať všetky opakovania</string>
<string name="update_one_only">Upraviť iba označené opakovania</string>
<string name="update_all_occurrences">Upraviť všetky opakovania</string>

View File

@ -44,6 +44,7 @@
<string name="event_is_repeatable">Händelsen är återkommande</string>
<string name="selection_contains_repetition">Markeringen innehåller återkommande händelser</string>
<string name="delete_one_only">Ta bara bort den markerade förekomsten</string>
<string name="delete_future_occurrences">Delete this and all future occurrences</string>
<string name="delete_all_occurrences">Ta bort alla förekomster</string>
<string name="update_one_only">Uppdatera bara den markerade förekomsten</string>
<string name="update_all_occurrences">Uppdatera alla förekomster</string>

View File

@ -44,6 +44,7 @@
<string name="event_is_repeatable">Etkinlik tekrarlanabilir</string>
<string name="selection_contains_repetition">Seçim tekrarlanan etkinlikleri içeriyor</string>
<string name="delete_one_only">Yalnızca seçilen etkinlikleri sil</string>
<string name="delete_future_occurrences">Delete this and all future occurrences</string>
<string name="delete_all_occurrences">Tüm tekrarlanan etkinlikleri sil</string>
<string name="update_one_only">Yalnızca seçilen etkinlikleri güncelle</string>
<string name="update_all_occurrences">Tüm etkinlikleri güncelle</string>

View File

@ -44,6 +44,7 @@
<string name="event_is_repeatable">這是個重複活動</string>
<string name="selection_contains_repetition">選擇的項目含有重複活動</string>
<string name="delete_one_only">只刪除選擇的事件</string>
<string name="delete_future_occurrences">Delete this and all future occurrences</string>
<string name="delete_all_occurrences">刪除全部事件</string>
<string name="update_one_only">只更新選擇的事件</string>
<string name="update_all_occurrences">更新全部事件</string>

View File

@ -44,6 +44,7 @@
<string name="event_is_repeatable">The event is repeatable</string>
<string name="selection_contains_repetition">The selection contains repeating events</string>
<string name="delete_one_only">Delete the selected occurrence only</string>
<string name="delete_future_occurrences">Delete this and all future occurrences</string>
<string name="delete_all_occurrences">Delete all occurrences</string>
<string name="update_one_only">Update the selected occurrence only</string>
<string name="update_all_occurrences">Update all occurrences</string>