Skip to content

Commit

Permalink
close dialog bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tiromansev committed Mar 30, 2018
1 parent c715cab commit f23d8ee
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit f23d8ee

Please sign in to comment.