diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2015-12-06 18:23:59 +0100 |
---|---|---|
committer | Christian S <christian@pix-art.de> | 2015-12-12 15:48:58 +0100 |
commit | 422df9062749296cc1dda3cc109cc7b330127634 (patch) | |
tree | 738a507e7f87b8dc4093845777ac6e0120e18a75 /src/main/java/eu/siacs/conversations/http | |
parent | 1ae83daf45f818e49f8731ca29f502d606b9c18d (diff) |
request storage permission when needed on Android 6.0
Diffstat (limited to 'src/main/java/eu/siacs/conversations/http')
-rw-r--r-- | src/main/java/eu/siacs/conversations/http/HttpDownloadConnection.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/eu/siacs/conversations/http/HttpDownloadConnection.java b/src/main/java/eu/siacs/conversations/http/HttpDownloadConnection.java index f371a2551..b7bea2e13 100644 --- a/src/main/java/eu/siacs/conversations/http/HttpDownloadConnection.java +++ b/src/main/java/eu/siacs/conversations/http/HttpDownloadConnection.java @@ -182,7 +182,7 @@ public class HttpDownloadConnection implements Transferable { return; } file.setExpectedSize(size); - if (size <= mHttpConnectionManager.getAutoAcceptFileSize()) { + if (mHttpConnectionManager.hasStoragePermission() && size <= mHttpConnectionManager.getAutoAcceptFileSize()) { HttpDownloadConnection.this.acceptedAutomatically = true; new Thread(new FileDownloader(interactive)).start(); } else { |