From f7f88e4dd6634d65e18dce847fabaa662368de1d Mon Sep 17 00:00:00 2001 From: Michael Gordeev Date: Fri, 27 Dec 2019 14:27:32 +0300 Subject: [PATCH] Fixed crashes due to calendar compat issues, fixed crashes due to image inflatation error (image replaced by text), fixed main layout margin --- GUT.Schedule/GUT.Schedule/Calendar.cs | 4 +--- .../GUT.Schedule/Resources/layout/activity_main.xml | 11 ++++------- .../GUT.Schedule/Resources/layout/splash_screen.xml | 12 ++++++++++-- 3 files changed, 15 insertions(+), 12 deletions(-) diff --git a/GUT.Schedule/GUT.Schedule/Calendar.cs b/GUT.Schedule/GUT.Schedule/Calendar.cs index 3b1a7b7..b79ebe7 100644 --- a/GUT.Schedule/GUT.Schedule/Calendar.cs +++ b/GUT.Schedule/GUT.Schedule/Calendar.cs @@ -1,5 +1,4 @@ using System.Collections.Generic; -using System.Threading.Tasks; using Android.App; using Android.Database; using Android.Net; @@ -34,7 +33,7 @@ namespace GUT.Schedule }; // Retrieving calendars data - ICursor cursor = Application.Context.ContentResolver.Query(calendarsUri, calendarsProjection, null, null); + ICursor cursor = Application.Context.ContentResolver.Query(calendarsUri, calendarsProjection, string.Empty, null, string.Empty); cursor.MoveToNext(); for (int i = 0; i < cursor.Count; i++) @@ -44,7 +43,6 @@ namespace GUT.Schedule cursor.MoveToNext(); } } - public static void Export(IEnumerable schedule) { diff --git a/GUT.Schedule/GUT.Schedule/Resources/layout/activity_main.xml b/GUT.Schedule/GUT.Schedule/Resources/layout/activity_main.xml index 7de7661..d1f7a2d 100644 --- a/GUT.Schedule/GUT.Schedule/Resources/layout/activity_main.xml +++ b/GUT.Schedule/GUT.Schedule/Resources/layout/activity_main.xml @@ -4,8 +4,7 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" - app:layout_behavior="@string/appbar_scrolling_view_behavior" - android:paddingBottom="50dp"> + app:layout_behavior="@string/appbar_scrolling_view_behavior"> + android:visibility="gone"/>