Skip to content

App crashes when adding a reminder to a searched note #1014

@sjl872964789

Description

@sjl872964789

Summary:
The app crashes when a user adds a reminder to a note through the search result interface. T

Steps to Reproduce:

  1. Create a new note in the app.
  2. Use the search bar to find the note.
  3. In the search results, long-press the note.
  4. Tap the three-dot menu in the top right corner.
  5. Select "Add reminder".
  6. Choose a time and tap "OK".
  7. The app crashes.

Expected Behavior:
The reminder should be set successfully or the app should prompt the user to grant required permissions gracefully.

Actual Behavior:
The app crashes with a SecurityException due to missing alarm permissions.

Crash Log (Logcat):

FATAL EXCEPTION: AsyncTask #2  
Process: it.feio.android.omninotes.foss, PID: 31221  
java.lang.RuntimeException: An error occurred while executing doInBackground()  
Caused by: java.lang.SecurityException: Caller it.feio.android.omninotes.foss needs to hold android.permission.SCHEDULE_EXACT_ALARM or android.permission.USE_EXACT_ALARM to set exact alarms.  
	at it.feio.android.omninotes.utils.ReminderHelper.addReminder(ReminderHelper.java:62)  
	at it.feio.android.omninotes.async.notes.SaveNoteTask.doInBackground(SaveNoteTask.java:56)  

Version: 6.3.1
OS: Android 11

Video:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions