1
0
mirror of https://github.com/XFox111/GUTSchedule.git synced 2026-04-22 06:58:01 +03:00

- Added "Exclude military department schedule" option

This commit is contained in:
Eugene Fox
2023-03-13 13:49:58 +03:00
parent 47477dc406
commit 2f80f74b65
6 changed files with 2584 additions and 4618 deletions
@@ -45,6 +45,9 @@ namespace GUTSchedule.Droid
{
foreach (Occupation item in schedule)
{
if (MainActivity.ExcludeMilitary && item.Name.ToLowerInvariant().Contains("военная подготовка"))
continue;
ContentValues eventValues = new ContentValues();
eventValues.Put(CalendarContract.Events.InterfaceConsts.CalendarId, Calendars[MainActivity.SelectedCalendarIndex].Id);