From 0485c5ecacb412e6cf8b91e70a8883c86e44949e Mon Sep 17 00:00:00 2001 From: Sergey Eremin Date: Fri, 3 Nov 2017 07:24:54 +0300 Subject: [PATCH] Issue #308 download permission problem - added a log line --- .../yeriomin/yalpstore/fragment/details/ButtonDownload.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/com/github/yeriomin/yalpstore/fragment/details/ButtonDownload.java b/app/src/main/java/com/github/yeriomin/yalpstore/fragment/details/ButtonDownload.java index 4bf6a3da..98954754 100644 --- a/app/src/main/java/com/github/yeriomin/yalpstore/fragment/details/ButtonDownload.java +++ b/app/src/main/java/com/github/yeriomin/yalpstore/fragment/details/ButtonDownload.java @@ -2,6 +2,7 @@ import android.content.Intent; import android.content.pm.PackageManager; +import android.util.Log; import android.view.View; import android.widget.ImageButton; import android.widget.ProgressBar; @@ -79,6 +80,8 @@ public void download() { } else if (prepareDownloadsDir()) { getPurchaseTask().execute(); } else { + File dir = Paths.getYalpPath(activity); + Log.i(getClass().getName(), dir.getAbsolutePath() + " exists=" + dir.exists() + ", isDirectory=" + dir.isDirectory() + ", writable=" + dir.canWrite()); ContextUtil.toast(this.activity.getApplicationContext(), R.string.error_downloads_directory_not_writable); } }