mirror of https://github.com/M66B/FairEmail.git
Merge branch 'master' into setup
This commit is contained in:
commit
035af4d948
|
@ -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"
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue