oliexdev / openScale

Open-source weight and body metrics tracker, with support for Bluetooth scales
GNU General Public License v3.0
1.73k stars 300 forks source link

[Bug] ActivityNotFoundException in Reminders settings #1076

Closed LoHub closed 1 week ago

LoHub commented 1 month ago

Describe the bug

App show the message An unexpected error occurred in Reminders settings.

To Reproduce

Steps to reproduce the behavior:

  1. Disable Notification permission
  2. Go in menu bruger
  3. Click on Settings
  4. Go to Reminders
  5. Click on OK to Notification permission is required, to shox notification

Reproduced with 2.5.2

Expected behavior

No crash and settings panel is displayed normally.

Debug log

Build version: 2.5.2 
Build date: 1981-01-01 01:01:02 
Current date: 2024-09-29 20:41:00 
Device: Google Pixel 8 
OS version: Android 14 (SDK 34) 

Stack trace:  
android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.settings.APPLICATION_DETAILS_SETTINGS }
    at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:2441)
    at android.app.Instrumentation.execStartActivity(Instrumentation.java:2011)
    at android.app.Activity.startActivityForResult(Activity.java:5886)
    at androidx.activity.ComponentActivity.startActivityForResult(ComponentActivity.java:763)
    at android.app.Activity.startActivityForResult(Activity.java:5806)
    at androidx.activity.ComponentActivity.startActivityForResult(ComponentActivity.java:744)
    at android.app.Activity.startActivity(Activity.java:6348)
    at android.app.Activity.startActivity(Activity.java:6315)
    at com.health.openscale.gui.preferences.ReminderPreferences$3.onClick(ReminderPreferences.java:189)
    at com.android.internal.app.AlertController$ButtonHandler.handleMessage(AlertController.java:175)
    at android.os.Handler.dispatchMessage(Handler.java:107)
    at android.os.Looper.loopOnce(Looper.java:232)
    at android.os.Looper.loop(Looper.java:317)
    at android.app.ActivityThread.main(ActivityThread.java:8623)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:580)
    at com.android.internal.os.ExecInit.main(ExecInit.java:50)
    at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
    at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:369)
oliexdev commented 1 week ago

Thanks for the hint should be fixed now.