mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-04 16:25:05 -05:00
fix save button when no file is selected
This commit is contained in:
parent
a50fe142e4
commit
312598290b
@ -158,6 +158,10 @@ public class EncryptFilesFragment extends Fragment implements EncryptActivityInt
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void encryptClicked(boolean share) {
|
private void encryptClicked(boolean share) {
|
||||||
|
if (mEncryptInterface.getInputUris().isEmpty()) {
|
||||||
|
Notify.showNotify(getActivity(), R.string.error_no_file_selected, Notify.Style.ERROR);
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (share) {
|
if (share) {
|
||||||
mEncryptInterface.getOutputUris().clear();
|
mEncryptInterface.getOutputUris().clear();
|
||||||
for (Uri uri : mEncryptInterface.getInputUris()) {
|
for (Uri uri : mEncryptInterface.getInputUris()) {
|
||||||
|
@ -910,6 +910,7 @@
|
|||||||
<string name="info_no_manual_account_creation">"Do not create OpenKeychain-Accounts manually.\nFor more information, see Help."</string>
|
<string name="info_no_manual_account_creation">"Do not create OpenKeychain-Accounts manually.\nFor more information, see Help."</string>
|
||||||
<string name="contact_show_key">"Show key (%s)"</string>
|
<string name="contact_show_key">"Show key (%s)"</string>
|
||||||
<string name="swipe_to_update">"Swipe down to update from keyserver"</string>
|
<string name="swipe_to_update">"Swipe down to update from keyserver"</string>
|
||||||
|
<string name="error_no_file_selected">"Select at least one file to encrypt!"</string>
|
||||||
<string name="error_multi_not_supported">"Saving of multiple files not supported. This is a limitation on current Android."</string>
|
<string name="error_multi_not_supported">"Saving of multiple files not supported. This is a limitation on current Android."</string>
|
||||||
|
|
||||||
<!-- First Time -->
|
<!-- First Time -->
|
||||||
|
Loading…
Reference in New Issue
Block a user