show a notification of events scheduled in the past instantly

This commit is contained in:
tibbi 2017-11-13 12:10:41 +01:00
parent 33d9f02cc7
commit debb18a0d4
22 changed files with 1 additions and 22 deletions

View File

@ -565,7 +565,7 @@ class EventActivity : SimpleActivity(), DBHelper.EventUpdateListener {
if (mEvent.id == 0) {
dbHelper.insert(mEvent, true) {
if (DateTime.now().isAfter(mEventStartDateTime.millis)) {
toast(R.string.past_event_added)
notifyEvent(mEvent)
} else {
toast(R.string.event_added)
}

View File

@ -24,7 +24,6 @@
<string name="title_empty">N\'hall ket an titl bezañ goullo</string>
<string name="end_before_start">N\'hall ket an darvoud echuiñ abretoc\'h eget ma krog</string>
<string name="event_added">Darvoud ouzhpennet gant berzh</string>
<string name="past_event_added">Darvoud en amzer tremenet ouzhpennet gant berzh</string>
<string name="event_updated">Darvoud hizivaet gant berzh</string>
<string name="filter">Sil</string>
<string name="filter_events_by_type">Silañ an darvoudoù dre rizh</string>

View File

@ -24,7 +24,6 @@
<string name="title_empty">Doplňte název</string>
<string name="end_before_start">Konec události nemůže být dříve než začátek</string>
<string name="event_added">Událost úspěšně přidána</string>
<string name="past_event_added">Předchozí událost úspěšně přidána</string>
<string name="event_updated">Událost úspěšně změněna</string>
<string name="filter">Filtrovat</string>
<string name="filter_events_by_type">Filtrovat události podle typu</string>

View File

@ -24,7 +24,6 @@
<string name="title_empty">Title cannot be empty</string>
<string name="end_before_start">The event cannot end earlier than it starts</string>
<string name="event_added">Event added successfully</string>
<string name="past_event_added">Event in the past added successfully</string>
<string name="event_updated">Event updated successfully</string>
<string name="filter">Filter</string>
<string name="filter_events_by_type">Filter events by type</string>

View File

@ -24,7 +24,6 @@
<string name="title_empty">Titel darf nicht leer sein</string>
<string name="end_before_start">Der Termin darf nicht früher enden als er beginnt</string>
<string name="event_added">Termin erfolgreich hinzugefügt</string>
<string name="past_event_added">Termin erfolgreich in der Vergangenheit hinzugefügt</string>
<string name="event_updated">Termin erfolgreich aktualisiert</string>
<string name="filter">Sortieren</string>
<string name="filter_events_by_type">Sortiere Termine nach Typ</string>

View File

@ -24,7 +24,6 @@
<string name="title_empty">El título no puede estar vacío</string>
<string name="end_before_start">El evento no puede acabar antes de iniciarse</string>
<string name="event_added">El evento se ha añadido con éxito</string>
<string name="past_event_added">El evento se ha añadido con éxito en el pasado</string>
<string name="event_updated">El evento se ha actualizado con éxito</string>
<string name="filter">Filtrar</string>
<string name="filter_events_by_type">Filtrar eventos según tipo</string>

View File

@ -24,7 +24,6 @@
<string name="title_empty">Le titre ne peut pas être vide</string>
<string name="end_before_start">L\'événement ne peut pas se terminer plus tôt qu\'il ne commence</string>
<string name="event_added">Événement ajouté avec succès</string>
<string name="past_event_added">Événement dans le passé ajouté avec succès</string>
<string name="event_updated">Événement ajouté avec succès</string>
<string name="filter">Filtrer</string>
<string name="filter_events_by_type">Filtrer les événements par type</string>

View File

@ -24,7 +24,6 @@
<string name="title_empty">शीर्षक रिक्त नहीं हो सकता</string>
<string name="end_before_start">इवेंट शुरू होने से पहले खत्म नहीं हो सकता</string>
<string name="event_added">इवेंट सफलतापूर्वक जोड़ा गया</string>
<string name="past_event_added">भुत में इवेंट सफलतापूर्वक जोड़ा गया</string>
<string name="event_updated">इवेंट सफलतापूर्वक अपडेट किया गया</string>
<string name="filter">Filter</string>
<string name="filter_events_by_type">Filter events by type</string>

View File

@ -24,7 +24,6 @@
<string name="title_empty">A cím nem lehet üres</string>
<string name="end_before_start">Az eseménynek nem lehet vége a kezdete előtt</string>
<string name="event_added">Bejegyzés hozzáadva</string>
<string name="past_event_added">Korábbi bejegyzés hozzáadva</string>
<string name="event_updated">Bejegyzés frissítve</string>
<string name="filter">Filter</string>
<string name="filter_events_by_type">Filter events by type</string>

View File

@ -24,7 +24,6 @@
<string name="title_empty">Il titolo non può essere vuoto</string>
<string name="end_before_start">L\'evento non può terminare prima del suo inizio</string>
<string name="event_added">Evento aggiunto correttamente</string>
<string name="past_event_added">Event in the past added successfully</string>
<string name="event_updated">Evento aggiornato correttamente</string>
<string name="filter">Filtro</string>
<string name="filter_events_by_type">Filtra eventi per tipologia</string>

View File

@ -24,7 +24,6 @@
<string name="title_empty">הכותרת לא יכולה להיות ריקה</string>
<string name="end_before_start">האירוע לא יכול להיגמר מוקדם משהוא מתחיל</string>
<string name="event_added">האירוע הוסף בהצלחה</string>
<string name="past_event_added">אירוע בעבר הוסף בהצלחה</string>
<string name="event_updated">האירוע עודכן בהצלחה</string>
<string name="filter">Filter</string>
<string name="filter_events_by_type">Filter events by type</string>

View File

@ -24,7 +24,6 @@
<string name="title_empty">タイトルは空にできません</string>
<string name="end_before_start">イベントの終了は開始よりも前にできません</string>
<string name="event_added">イベントを正常に追加しました</string>
<string name="past_event_added">過去のイベントを正常に追加しました</string>
<string name="event_updated">イベントを正常に更新しました</string>
<string name="filter">Filter</string>
<string name="filter_events_by_type">Filter events by type</string>

View File

@ -24,7 +24,6 @@
<string name="title_empty">제목을 입력해주세요</string>
<string name="end_before_start">이벤트가 시작되기 전에 끝날 수 없습니다</string>
<string name="event_added">이벤트가 성공적으로 추가되었습니다</string>
<string name="past_event_added">과거의 이벤트가 성공적으로 추가되었습니다</string>
<string name="event_updated">이벤트를 수정했습니다</string>
<string name="filter">필터</string>
<string name="filter_events_by_type">유형별 이벤트</string>

View File

@ -24,7 +24,6 @@
<string name="title_empty">Titel kan niet leeg zijn</string>
<string name="end_before_start">De begintijd valt na de eindtijd</string>
<string name="event_added">Afspraak gemaakt</string>
<string name="past_event_added">Afgelopen afspraak toegevoegd</string>
<string name="event_updated">Afspraak bijgewerkt</string>
<string name="filter">Filter</string>
<string name="filter_events_by_type">Afspraken op type filteren</string>

View File

@ -24,7 +24,6 @@
<string name="title_empty">Tytuł nie może być pusty</string>
<string name="end_before_start">Wydarzenie nie może zakończyć się wcześniej, niż się zaczyna</string>
<string name="event_added">Wydarzenie zostało dodane</string>
<string name="past_event_added">Wydarzenie z przeszłości zostało dodane</string>
<string name="event_updated">Wydarzenie zostało zaktualizowane</string>
<string name="filter">Filtr</string>
<string name="filter_events_by_type">Filtruj wydarzenia według typu</string>

View File

@ -24,7 +24,6 @@
<string name="title_empty">O título não pode ficar vazio</string>
<string name="end_before_start">O evento não pode terminar antes de iniciar</string>
<string name="event_added">Evento adicionado com sucesso</string>
<string name="past_event_added">Evento no passado adicionado com sucesso</string>
<string name="event_updated">Evento atualizado com sucesso</string>
<string name="filter">Filtrar</string>
<string name="filter_events_by_type">Filtrar eventos por tipo</string>

View File

@ -24,7 +24,6 @@
<string name="title_empty">O título não pode estar vazio</string>
<string name="end_before_start">O evento não pode terminar antes de iniciar</string>
<string name="event_added">Evento adicionado com sucesso</string>
<string name="past_event_added">Evento no passado adicionado com sucesso</string>
<string name="event_updated">Evento atualizado com sucesso</string>
<string name="filter">Filtrar</string>
<string name="filter_events_by_type">Filtrar eventos por tipo</string>

View File

@ -24,7 +24,6 @@
<string name="title_empty">Заголовок не может быть пустым</string>
<string name="end_before_start">Событие не может завершаться раньше, чем начинается</string>
<string name="event_added">Событие успешно добавлено</string>
<string name="past_event_added">Событие в прошлом успешно создано</string>
<string name="event_updated">Событие успешно обновлено</string>
<string name="filter">Фильтрация</string>
<string name="filter_events_by_type">Фильтровать события по типу</string>

View File

@ -24,7 +24,6 @@
<string name="title_empty">Prosím zadajte názov</string>
<string name="end_before_start">Udalosť nemôže skončiť skôr ako by začala</string>
<string name="event_added">Udalosť bola úspešne pridaná</string>
<string name="past_event_added">Udalosť v minulosti bola úspešne pridaná</string>
<string name="event_updated">Udalosť bola úspešne upravená</string>
<string name="filter">Filtrovať</string>
<string name="filter_events_by_type">Filtrovať udalosti podľa typu</string>

View File

@ -24,7 +24,6 @@
<string name="title_empty">Titeln får inte vara tom</string>
<string name="end_before_start">Händelsen kan inte sluta innan den har startat</string>
<string name="event_added">Händelsen tillagd</string>
<string name="past_event_added">Händelsen är tillagd</string>
<string name="event_updated">Händelsen uppdaterad</string>
<string name="filter">Filtrera</string>
<string name="filter_events_by_type">Filtrera händelser efter typ</string>

View File

@ -24,7 +24,6 @@
<string name="title_empty">Başlık başlığı boş olamaz</string>
<string name="end_before_start">Etkinlik, başlamasından önce sona eremez</string>
<string name="event_added">Etkinlik başarıyla eklendi</string>
<string name="past_event_added">Geçmişteki etkinlik başarıyla eklendi</string>
<string name="event_updated">Etkinlik başarıyla güncellendi</string>
<string name="filter">Filtre</string>
<string name="filter_events_by_type">Etkinlikleri türe göre filtreleyin</string>

View File

@ -24,7 +24,6 @@
<string name="title_empty">Title cannot be empty</string>
<string name="end_before_start">The event cannot end earlier than it starts</string>
<string name="event_added">Event added successfully</string>
<string name="past_event_added">Event in the past added successfully</string>
<string name="event_updated">Event updated successfully</string>
<string name="filter">Filter</string>
<string name="filter_events_by_type">Filter events by type</string>