From f37ddfe00f3b647d0cfa23c340b1178edc9dc597 Mon Sep 17 00:00:00 2001 From: Damian Czupryn <60961958+Daxxxis@users.noreply.github.com> Date: Sun, 24 Jan 2021 20:01:18 +0100 Subject: [PATCH] Disable vibrations in data picker (#1093) --- .../github/wulkanowy/ui/modules/attendance/AttendanceFragment.kt | 1 + .../github/wulkanowy/ui/modules/timetable/TimetableFragment.kt | 1 + .../ui/modules/timetable/additional/AdditionalLessonsFragment.kt | 1 + .../ui/modules/timetable/completed/CompletedLessonsFragment.kt | 1 + 4 files changed, 4 insertions(+) diff --git a/app/src/main/java/io/github/wulkanowy/ui/modules/attendance/AttendanceFragment.kt b/app/src/main/java/io/github/wulkanowy/ui/modules/attendance/AttendanceFragment.kt index a106bc50..83ed163f 100644 --- a/app/src/main/java/io/github/wulkanowy/ui/modules/attendance/AttendanceFragment.kt +++ b/app/src/main/java/io/github/wulkanowy/ui/modules/attendance/AttendanceFragment.kt @@ -222,6 +222,7 @@ class AttendanceFragment : BaseFragment(R.layout.frag setDateRangeLimiter(SchooldaysRangeLimiter()) version = DatePickerDialog.Version.VERSION_2 scrollOrientation = DatePickerDialog.ScrollOrientation.VERTICAL + vibrate(false) show(this@AttendanceFragment.parentFragmentManager, null) } } diff --git a/app/src/main/java/io/github/wulkanowy/ui/modules/timetable/TimetableFragment.kt b/app/src/main/java/io/github/wulkanowy/ui/modules/timetable/TimetableFragment.kt index 1bb9c920..21585cc9 100644 --- a/app/src/main/java/io/github/wulkanowy/ui/modules/timetable/TimetableFragment.kt +++ b/app/src/main/java/io/github/wulkanowy/ui/modules/timetable/TimetableFragment.kt @@ -176,6 +176,7 @@ class TimetableFragment : BaseFragment(R.layout.fragme setDateRangeLimiter(SchooldaysRangeLimiter()) version = DatePickerDialog.Version.VERSION_2 scrollOrientation = DatePickerDialog.ScrollOrientation.VERTICAL + vibrate(false) show(this@TimetableFragment.parentFragmentManager, null) } } diff --git a/app/src/main/java/io/github/wulkanowy/ui/modules/timetable/additional/AdditionalLessonsFragment.kt b/app/src/main/java/io/github/wulkanowy/ui/modules/timetable/additional/AdditionalLessonsFragment.kt index 17a1cabe..559366a9 100644 --- a/app/src/main/java/io/github/wulkanowy/ui/modules/timetable/additional/AdditionalLessonsFragment.kt +++ b/app/src/main/java/io/github/wulkanowy/ui/modules/timetable/additional/AdditionalLessonsFragment.kt @@ -128,6 +128,7 @@ class AdditionalLessonsFragment : setDateRangeLimiter(SchooldaysRangeLimiter()) version = DatePickerDialog.Version.VERSION_2 scrollOrientation = DatePickerDialog.ScrollOrientation.VERTICAL + vibrate(false) show(this@AdditionalLessonsFragment.parentFragmentManager, null) } } diff --git a/app/src/main/java/io/github/wulkanowy/ui/modules/timetable/completed/CompletedLessonsFragment.kt b/app/src/main/java/io/github/wulkanowy/ui/modules/timetable/completed/CompletedLessonsFragment.kt index 828e1001..f8634a9b 100644 --- a/app/src/main/java/io/github/wulkanowy/ui/modules/timetable/completed/CompletedLessonsFragment.kt +++ b/app/src/main/java/io/github/wulkanowy/ui/modules/timetable/completed/CompletedLessonsFragment.kt @@ -147,6 +147,7 @@ class CompletedLessonsFragment : setDateRangeLimiter(SchooldaysRangeLimiter()) version = DatePickerDialog.Version.VERSION_2 scrollOrientation = DatePickerDialog.ScrollOrientation.VERTICAL + vibrate(false) show(this@CompletedLessonsFragment.parentFragmentManager, null) } }