diff --git a/build.gradle b/build.gradle index 7e01a0a..804e9f4 100644 --- a/build.gradle +++ b/build.gradle @@ -6,7 +6,7 @@ buildscript { google() } dependencies { - classpath 'com.android.tools.build:gradle:3.0.1' + classpath 'com.android.tools.build:gradle:3.1.0' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 03992d8..b8e7df0 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ -#Thu Oct 26 08:57:16 MSK 2017 +#Fri Mar 30 09:32:00 MSK 2018 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip diff --git a/permissionmanager/src/main/java/com/tiromansev/permissionmanager/PermissionRequestActivity.java b/permissionmanager/src/main/java/com/tiromansev/permissionmanager/PermissionRequestActivity.java index 68a9682..a6dd6d3 100644 --- a/permissionmanager/src/main/java/com/tiromansev/permissionmanager/PermissionRequestActivity.java +++ b/permissionmanager/src/main/java/com/tiromansev/permissionmanager/PermissionRequestActivity.java @@ -98,6 +98,7 @@ public void onClick(DialogInterface dialog, int which) { @Override public void onClick(DialogInterface dialog, int which) { dialog.dismiss(); + PermissionsManager.get().permissionRejected(); close(); } }); diff --git a/permissionmanager/src/main/java/com/tiromansev/permissionmanager/PermissionsManager.java b/permissionmanager/src/main/java/com/tiromansev/permissionmanager/PermissionsManager.java index 4714f7d..96ff91b 100644 --- a/permissionmanager/src/main/java/com/tiromansev/permissionmanager/PermissionsManager.java +++ b/permissionmanager/src/main/java/com/tiromansev/permissionmanager/PermissionsManager.java @@ -361,6 +361,12 @@ public void executeSnackBarAction() { } } + public void permissionRejected() { + if (permissionCallback != null) { + permissionCallback.permissionRejected(); + } + } + public void onRequestPermissionsResult(String[] permissions) { Log.d("permission_request", "requestPermission permissionCallback is null " + hasCallBack()); if (hasCallBack()) {