Skip to content

Commit

Permalink
Fix upload and increase version to 1.5 (6)
Browse files Browse the repository at this point in the history
  • Loading branch information
nning committed May 25, 2017
1 parent 08ad2b6 commit 4f4c13c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ android {
applicationId "net.orgizm.imgshr"
minSdkVersion 14
targetSdkVersion 25
versionCode 5
versionName "1.4"
versionCode 6
versionName "1.5"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}

Expand Down
4 changes: 2 additions & 2 deletions app/src/main/java/net/orgizm/imgshr/Connection.java
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,10 @@ private void uploadImage(Uri imageUri, int i, int n) throws IOException, Instant
}

public String uploadImages(ArrayList<Uri> imageUris) throws IOException, InstantiationException, IllegalAccessException {
out = new BufferedOutputStream(conn.getOutputStream());
setConnectionPropertiesForUpload();
out = new BufferedOutputStream(conn.getOutputStream());

int n = imageUris.size();
int n = imageUris.size();
for(int i = 0; i < n; i++) {
uploadImage(imageUris.get(i), i, n);
}
Expand Down

0 comments on commit 4f4c13c

Please sign in to comment.