From 8c36ee47ad948448d935bdba38249ec9339ec3b7 Mon Sep 17 00:00:00 2001 From: oliexdev Date: Sun, 17 Nov 2024 12:52:03 +0100 Subject: [PATCH] fixed bug to show application details settings, see #1076 --- .../health/openscale/gui/preferences/ReminderPreferences.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/android_app/app/src/main/java/com/health/openscale/gui/preferences/ReminderPreferences.java b/android_app/app/src/main/java/com/health/openscale/gui/preferences/ReminderPreferences.java index 42be67296..714b22daa 100644 --- a/android_app/app/src/main/java/com/health/openscale/gui/preferences/ReminderPreferences.java +++ b/android_app/app/src/main/java/com/health/openscale/gui/preferences/ReminderPreferences.java @@ -22,6 +22,7 @@ import android.content.Intent; import android.content.SharedPreferences; import android.content.pm.PackageManager; +import android.net.Uri; import android.os.Build; import android.os.Bundle; import android.provider.Settings; @@ -185,7 +186,7 @@ public void onClick(DialogInterface dialogInterface, int i) { builder.setMessage(R.string.permission_notification_info); builder.setPositiveButton(R.string.label_ok, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialogInterface, int i) { - Intent intent = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS); + Intent intent = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS, Uri.parse("package:" + getContext().getPackageName())); getContext().startActivity(intent); } });