fix save button when no file is selected

This commit is contained in:
Vincent Breitmoser
2014-09-24 15:36:34 +02:00
parent a50fe142e4
commit 312598290b
2 changed files with 5 additions and 0 deletions

View File

@@ -158,6 +158,10 @@ public class EncryptFilesFragment extends Fragment implements EncryptActivityInt
}
private void encryptClicked(boolean share) {
if (mEncryptInterface.getInputUris().isEmpty()) {
Notify.showNotify(getActivity(), R.string.error_no_file_selected, Notify.Style.ERROR);
return;
}
if (share) {
mEncryptInterface.getOutputUris().clear();
for (Uri uri : mEncryptInterface.getInputUris()) {