SimpleMobileTools / Simple-Calendar

A simple calendar with events, tasks, customizable colors, widgets and no ads.
https://www.simplemobiletools.com
GNU General Public License v3.0
3.5k stars 1.14k forks source link

Selecting a date with a more precise format than the date format of the current view causes the app to crash #2232

Open Vsnmrn opened 9 months ago

Vsnmrn commented 9 months ago

Here is a bug that is fortunately very unlikely to encounter, but I wanted to report it just in case.

I discovered this bug by chance in version 6.23.0 (from F-Droid) and I was able to reproduce it in 6.23.1 on my Samsung A54 (Android 13).

To reproduce it, follow these steps :

  1. Select the "monthly view" (or "yearly view") as the default view.
  2. Press a day (or month) to show that day / month.
  3. Press the date and then quickly press the back button.
  4. If you have succeeded, you should be able to select a date to go with a more precise format than the date format of the view which is visible in the background. For example, you should be able to enter a date in "day - month - year" format although the "monthly view" is visible in the background. (See screenshot below)
  5. If you press OK to go to the selected date, the app crashes.

Note that the app does not crash if you select a date with a less precise format than the date format of the current view. Screenshot_20231009_162839_Calendar