fix save button when no file is selected
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user