Skip to content

Commit

Permalink
Add additional validation for min of 20 photos
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown authored and unknown committed Dec 26, 2014
1 parent d633f1e commit eb59690
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/android/Library/src/MultiImageChooserActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,8 @@ public void selectClicked(View ignored) {
********************/
private void updateAcceptButton() {
((TextView) getActionBar().getCustomView().findViewById(fakeR.getId("id", "actionbar_done_textview")))
.setEnabled(fileNames.size() != 0);
getActionBar().getCustomView().findViewById(fakeR.getId("id", "actionbar_done")).setEnabled(fileNames.size() != 0);
.setEnabled(fileNames.size() != 0 && fileNames.size() > 19);
getActionBar().getCustomView().findViewById(fakeR.getId("id", "actionbar_done")).setEnabled(fileNames.size() != 0 && fileNames.size() > 19);
}

private void setupHeader() {
Expand Down

0 comments on commit eb59690

Please sign in to comment.