mirror of
https://github.com/XFox111/GUTSchedule.git
synced 2026-04-22 06:58:01 +03:00
Fixed application crashes when there is no public schedule available
This commit is contained in:
@@ -185,7 +185,7 @@ namespace GUTSchedule.Droid.Activities
|
|||||||
|
|
||||||
private async void UpdateGroupsList()
|
private async void UpdateGroupsList()
|
||||||
{
|
{
|
||||||
if (course.SelectedItem == null)
|
if (course.SelectedItem == null || Faculties.Count < 1)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
Groups = await Parser.GetGroups(Faculties[faculty.SelectedItemPosition].id, (course.SelectedItemPosition + 1).ToString());
|
Groups = await Parser.GetGroups(Faculties[faculty.SelectedItemPosition].id, (course.SelectedItemPosition + 1).ToString());
|
||||||
|
|||||||
@@ -12,7 +12,8 @@ namespace GUTSchedule.Test
|
|||||||
{
|
{
|
||||||
var list = await Parser.GetFaculties();
|
var list = await Parser.GetFaculties();
|
||||||
Assert.IsNotNull(list);
|
Assert.IsNotNull(list);
|
||||||
Assert.IsTrue(list.Count > 0);
|
if (list.Count < 1)
|
||||||
|
Assert.Warn("No faculties available");
|
||||||
|
|
||||||
Console.WriteLine("Faculties list:");
|
Console.WriteLine("Faculties list:");
|
||||||
list.ForEach(i =>
|
list.ForEach(i =>
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
- Updated schedule parser
|
- Fixed application crashes when there is no public schedule available
|
||||||
@@ -1 +1 @@
|
|||||||
- Обновлен парсер расписания
|
- Исправлены вылеты, когда нет публичного расписания
|
||||||
@@ -1,2 +1,2 @@
|
|||||||
## Core
|
## Android
|
||||||
- Updated schedule parser
|
- Fixed application crashes when there is no public schedule available
|
||||||
Reference in New Issue
Block a user