diff --git a/app/src/main/java/eu/faircode/email/FragmentSetup.java b/app/src/main/java/eu/faircode/email/FragmentSetup.java index f73abed352..873ecc8203 100644 --- a/app/src/main/java/eu/faircode/email/FragmentSetup.java +++ b/app/src/main/java/eu/faircode/email/FragmentSetup.java @@ -446,10 +446,8 @@ public class FragmentSetup extends FragmentBase { @Override public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) { for (int i = 0; i < permissions.length; i++) - if (grantResults[i] == PackageManager.PERMISSION_GRANTED) { - if (Manifest.permission.READ_CONTACTS.equals(permissions[i])) - setContactsPermission(true); - } + if (Manifest.permission.READ_CONTACTS.equals(permissions[i])) + setContactsPermission(grantResults[i] == PackageManager.PERMISSION_GRANTED); } private void setContactsPermission(boolean granted) {