From d0ef36661886ad54f90ec4ebe6c0203780bbe11b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 1 Nov 2023 13:13:29 -0400 Subject: [PATCH] community: bump `com.applandeo:material-calendar-view` to 1.9.0 (fixes #2666) (#2665) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Gideon Okuro Co-authored-by: dogi --- app/build.gradle | 6 +++--- .../ole/planet/myplanet/ui/calendar/CalendarFragment.java | 6 +----- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index a39a2d5ea8..d9054d6b19 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -9,8 +9,8 @@ android { applicationId "org.ole.planet.myplanet" minSdkVersion 21 targetSdkVersion 34 - versionCode 1128 - versionName "0.11.28" + versionCode 1129 + versionName "0.11.29" ndkVersion '21.3.6528147' testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" vectorDrawables.useSupportLibrary = true @@ -134,7 +134,7 @@ dependencies { implementation "androidx.core:core-ktx:1.12.0" implementation "com.github.VaibhavLakhera:Circular-Progress-View:0.1.2" implementation 'com.github.PhilJay:MPAndroidChart:v3.1.0' - implementation 'com.applandeo:material-calendar-view:1.7.0' + implementation 'com.applandeo:material-calendar-view:1.9.0' implementation "androidx.work:work-runtime:2.8.1" implementation(platform("org.jetbrains.kotlin:kotlin-bom:1.9.20")) } diff --git a/app/src/main/java/org/ole/planet/myplanet/ui/calendar/CalendarFragment.java b/app/src/main/java/org/ole/planet/myplanet/ui/calendar/CalendarFragment.java index 9164841386..68b746e4ca 100644 --- a/app/src/main/java/org/ole/planet/myplanet/ui/calendar/CalendarFragment.java +++ b/app/src/main/java/org/ole/planet/myplanet/ui/calendar/CalendarFragment.java @@ -52,12 +52,8 @@ public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup c }); Calendar calendar = Calendar.getInstance(); + calendarBinding.calendarView.setDate(calendar.getTime()); - try { - calendarBinding.calendarView.setDate(calendar.getTime()); - } catch (OutOfDateRangeException e) { - e.printStackTrace(); - } return calendarBinding.getRoot(); }