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); } }