Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,13 @@ protected void downloadFile() {


protected void requestPermissionAndDownloadFile() {
// if dir is writable, skip checking permission
if (new File(versionParams.getDownloadAPKPath()).canWrite()) {
Log.i(TAG, "requestPermissionAndDownloadFile: " + new File(versionParams.getDownloadAPKPath()).canWrite());
downloadFile();
}
// Here, thisActivity is the current activity
if (ContextCompat.checkSelfPermission(this,
else if (ContextCompat.checkSelfPermission(this,
Manifest.permission.WRITE_EXTERNAL_STORAGE)
!= PackageManager.PERMISSION_GRANTED) {

Expand Down