Skip to content

Commit 8c36ee4

Browse files
committed
fixed bug to show application details settings, see #1076
1 parent 8b43266 commit 8c36ee4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

android_app/app/src/main/java/com/health/openscale/gui/preferences/ReminderPreferences.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
import android.content.Intent;
2323
import android.content.SharedPreferences;
2424
import android.content.pm.PackageManager;
25+
import android.net.Uri;
2526
import android.os.Build;
2627
import android.os.Bundle;
2728
import android.provider.Settings;
@@ -185,7 +186,7 @@ public void onClick(DialogInterface dialogInterface, int i) {
185186
builder.setMessage(R.string.permission_notification_info);
186187
builder.setPositiveButton(R.string.label_ok, new DialogInterface.OnClickListener() {
187188
public void onClick(DialogInterface dialogInterface, int i) {
188-
Intent intent = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);
189+
Intent intent = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS, Uri.parse("package:" + getContext().getPackageName()));
189190
getContext().startActivity(intent);
190191
}
191192
});

0 commit comments

Comments
 (0)