diff --git a/app/build.gradle b/app/build.gradle index d652d5328a..72320811e4 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -243,7 +243,7 @@ dependencies { def recyclerview_version = "1.2.0-beta01" def coordinatorlayout_version = "1.1.0" def constraintlayout_version = "2.0.2" - def material_version = "1.3.0-beta01" + def material_version = "1.3.0-rc01" def browser_version = "1.3.0" def lbm_version = "1.0.0" def swiperefresh_version = "1.2.0-alpha01" diff --git a/app/src/main/java/eu/faircode/email/FragmentSetup.java b/app/src/main/java/eu/faircode/email/FragmentSetup.java index 90378b1918..b0b376336b 100644 --- a/app/src/main/java/eu/faircode/email/FragmentSetup.java +++ b/app/src/main/java/eu/faircode/email/FragmentSetup.java @@ -404,10 +404,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) {