Skip to content

Commit

Permalink
Fix issues in #14
Browse files Browse the repository at this point in the history
  • Loading branch information
HBiSoft committed Feb 24, 2020
1 parent c3cb420 commit ac7ef51
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,12 @@ protected String doInBackground(Uri... params) {
if (!isCancelled()) {
total += count;
if (size != -1) {
publishProgress((int) ((total * 100) / size));
try {
publishProgress((int) ((total * 100) / size));
}catch(Exception e){
Log.i("PickiT -", "File size is less than 1");
publishProgress(0);
}
}
fos.write(data, 0, count);
}
Expand Down

0 comments on commit ac7ef51

Please sign in to comment.