Title: [Android] Obsidian crashes with AndroidRuntimeException when using Quick Settings Tile / Notification action
Description:
When trying to use the Obsidian Quick Settings tile / notification action to create a daily note, the app immediately crashes with a FATAL EXCEPTION on the main thread. The stack trace indicates an issue with launching an activity from outside of an Activity context without the FLAG_ACTIVITY_NEW_TASK flag.
Steps to reproduce:
- Open the Android notification shade / Quick Settings panel.
- Tap on the Obsidian Quick Settings tile / action (e.g., Daily Note).
- The app crashes immediately (
keeps stopping).
Environment:
- Obsidian Mobile Version: 1.15.0
- Android Version: 13
- Device: Samsung M52
Logcat Crash Log:
11-04 20:05:55.106 11355 11355 E AndroidRuntime: FATAL EXCEPTION: main
11-04 20:05:55.106 11355 11355 E AndroidRuntime: Process: md.obsidian, PID: 11355
11-04 20:05:55.106 11355 11355 E AndroidRuntime: android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want?
11-04 20:05:55.106 11355 11355 E AndroidRuntime: at android.app.ContextImpl.startActivity(ContextImpl.java:1140)
11-04 20:05:55.106 11355 11355 E AndroidRuntime: at android.service.quicksettings.TileService.startActivityAndCollapse(TileService.java:462)
…